Exceptions

exception ezcord.errors.ErrorMessageSent[source]

Exception that can be raised to indicate that an error message has already been sent to the user.

This could be useful if an error message has already been sent to the user within a check function. This prevents further messages to the user, as this error will be ignored by the default error handler.

exception ezcord.errors.EzcordException[source]

Base exception class for all Ezcord exceptions.

exception ezcord.errors.ConvertTimeError[source]

Raised when a time conversion fails.

exception ezcord.errors.DurationError[source]

Raised when a given duration is too long.

exception ezcord.errors.Blacklisted[source]

Can be raised when a blacklisted user tries to use a command.

This error can be caught in a command error handler to send a custom response.

exception ezcord.errors.InvalidFormat[source]

Raised when an invalid URL has been passed.

exception ezcord.errors.MessageNotFound[source]

Raised when a message is not found in a certain channel.

exception ezcord.errors.ChannelNotFound[source]

Raised when a channel is not found.

exception ezcord.errors.MissingPermission[source]

Raised when the bot does not have permission to access a certain object.