Errors
To handle errors from Erine's custom errors, you can use this class in conjunction with the error event.
Error Classes
Client-oriented classes
- Errors.MissingBotChannelPermission
- Errors.MissingBotPermission
Command-oriented classes
- Errors.CommandNotFound
Guild-oriented classes
- Errors.GuildOnly
- Errors.MissingPermission
- Errors.MissingChannelPermission
- Errors.NotInChannelType
Parameter-oriented classes
- Errors.NotParamBoolean
- Errors.NotParamNumber
- Errors.InvalidParamChoice
- Errors.InvalidParamMember
- Errors.InvalidParamChannel
- Errors.InvalidParamRole
- Errors.InvalidChannelType
- Errors.MissingRequiredParam
Process-oriented classes
- Errors.UnknownCommandError
User-oriented classes
- Errors.NotNSFW
- Errors.OnlyForIDs
- Errors.NotOwner
Example
Go check Maker