-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added `Command#parseConstructorPreConditions`. Added `Command#parseConstructorPreConditionsRunIn`. Added `Command#parseConstructorPreConditionsNsfw`. Added `Command#parseConstructorPreConditionsRequiredClientPermissions`. Added `Command#parseConstructorPreConditionsCooldown`. Added `CommandPreConditions.Permissions`. Added `CommandOptions.cooldownScope`. Added `CommandOptions.requiredClientPermissions`. Added `Preconditions` interface, this strict types all precondition names and contexts. Added `PreconditionContainerArray#append`. Added `SimplePreconditionSingleResolvableDetails`. Fixed cooldown precondition not working when defining alias properties from `Command`. BREAKING CHANGE: Changed `Command#preconditions` to `PreconditionContainerArray`. BREAKING CHANGE: Removed `Command#resolveConstructorPreConditions`. BREAKING CHANGE: Renamed `CommandOptions.cooldownBucket` to `cooldownLimit`. BREAKING CHANGE: Renamed `CommandOptions.cooldownDuration` to `cooldownDelay`. BREAKING CHANGE: Renamed `BucketType` to `BucketScope`. BREAKING CHANGE: Changed `PreconditionSingleResolvableDetails` to take a type parameter. BREAKING CHANGE: Changed `PreconditionSingleResolvable` to use `Preconditions`'s type. BREAKING CHANGE: Renamed `CooldownContext.bucketType` to `scope`.
- Loading branch information
Showing
7 changed files
with
214 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.