You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(arguments): extract logic to resolvers (#237)
This extract the logic of all Arguments to public resolver functions,
exported under the Resolvers namespace
Other changes:
- Ability to add custom values on the fly via context for BooleanArgument
- Add tests for some resolvers
- For arguments where a guild is required, if no guild is found,
guild won't be passed to the context anymore
- For arguments where a guild is required, if a guild is found but a resolver error occurs,
the guild will be passed to the context
Co-authored-by: Antonio Román <[email protected]>
Co-authored-by: Jeroen Claassens <[email protected]>
BREAKING CHANGE: Changed the error message of DateArgument
BREAKING CHANGE: Changed the error message of FloatArgument
BREAKING CHANGE: Changed the error message of NumberArgument
BREAKING CHANGE: Changed the error message of IntegerArgument
BREAKING CHANGE: Changed the error message of all arguments that must be run in a guild
BREAKING CHANGE: Changed the error message of GuildNewsThreadChannelArgument
BREAKING CHANGE: Changed the error message of GuildPrivateThreadChannelArgument
BREAKING CHANGE: Changed the error message of GuildPublicThreadChannelArgument
BREAKING CHANGE: Changed the error message of GuildStageVoiceChannelArgument
BREAKING CHANGE: Changed the error message of GuildTextChannelArgument
BREAKING CHANGE: Changed the error message of GuildThreadChannelArgument
BREAKING CHANGE: Changed the error message of GuildVoiceChannelArgument
BREAKING CHANGE: Changed the error message of GuildMemberArgument
BREAKING CHANGE: Changed the error message of UserArgument
BREAKING CHANGE: Made MessageArgumentContext private
BREAKING CHANGE: Stop exposing the channel property in context of the ChannelArgument error
BREAKING CHANGE: Stop exposing the channel property in context of the GuildCategoryChannelArgument error
BREAKING CHANGE: Stop exposing the channel property in context of the GuildNewsChannelArgument error
BREAKING CHANGE: Stop exposing the channel property in context of the GuildPrivateThreadArgument error
BREAKING CHANGE: Stop exposing the channel property in context of the GuildStageVoiceChannelArgument error
BREAKING CHANGE: Stop exposing the channel property in context of the GuildTextChannelArgument error
BREAKING CHANGE: Stop exposing the channel property in context of the GuildThreadChannelArgument error
BREAKING CHANGE: Stop exposing the channel property in context of the GuildVoiceChannelArgument error
BREAKING CHANGE: Rename Identifiers.ArgumentBoolean to Identifiers.ArgumentBooleanError
BREAKING CHANGE: Rename Identifiers.ArgumentCategoryChannel to Identifiers.ArgumentGuildCategoryChannelError
BREAKING CHANGE: Rename Identifiers.ArgumentChannel to Identifiers.ArgumentChannelError
BREAKING CHANGE: Rename Identifiers.ArgumentDate to Identifiers.ArgumentDateError
BREAKING CHANGE: Rename Identifiers.ArgumentDateTooSmall to Identifiers.ArgumentDateTooEarly
BREAKING CHANGE: Rename Identifiers.ArgumentDateTooBig to Identifiers.ArgumentDateTooFar
BREAKING CHANGE: Rename Identifiers.ArgumentDMChannel to Identifiers.ArgumentDMChannelError
BREAKING CHANGE: Rename Identifiers.ArgumentFloat to Identifiers.ArgumentFloatError
BREAKING CHANGE: Rename Identifiers.ArgumentFloatTooBig to Identifiers.ArgumentFloatTooLarge
BREAKING CHANGE: Rename Identifiers.ArgumentGuildChannel to Identifiers.ArgumentGuildChannelError
BREAKING CHANGE: Rename Identifiers.ArgumentGuildChannelMissingGuild to Identifiers.ArgumentGuildChannelMissingGuildError
BREAKING CHANGE: Rename Identifiers.ArgumentHyperlink to Identifiers.ArgumentHyperlinkError
BREAKING CHANGE: Rename Identifiers.ArgumentInteger to Identifiers.ArgumentIntegerError
BREAKING CHANGE: Rename Identifiers.ArgumentIntegerTooBig to Identifiers.ArgumentIntegerTooLarge
BREAKING CHANGE: Rename Identifiers.ArgumentMember to Identifiers.ArgumentMemberError
BREAKING CHANGE: Rename Identifiers.ArgumentMessage to Identifiers.ArgumentMessageError
BREAKING CHANGE: Rename Identifiers.ArgumentNewsChannel to Identifiers.ArgumentGuildNewsChannelError
BREAKING CHANGE: Rename Identifiers.ArgumentNumber to Identifiers.ArgumentNumberError
BREAKING CHANGE: Rename Identifiers.ArgumentNumberTooBig to Identifiers.ArgumentNumberTooLarge
BREAKING CHANGE: Rename Identifiers.ArgumentRole to Identifiers.ArgumentRoleError
BREAKING CHANGE: Rename Identifiers.ArgumentTextChannel to Identifiers.ArgumentGuildTextChannel
BREAKING CHANGE: Rename Identifiers.ArgumentUser to Identifiers.ArgumentUserError
BREAKING CHANGE: Rename Identifiers.ArgumentVoiceChannel to Identifiers.ArgumentGuildVoiceChannel
0 commit comments