[−][src]Enum serenity::framework::standard::DispatchError
An enum representing all possible fail conditions under which a command won't be executed.
Variants
CheckFailed
When a custom function check has failed.
CommandDisabled(String)
When the requested command is disabled in bot configuration.
BlockedUser
When the user is blocked in bot configuration.
BlockedGuild
When the guild or its owner is blocked in bot configuration.
BlockedChannel
When the channel blocked in bot configuration.
LackOfPermissions(Permissions)
When the command requester lacks specific required permissions.
RateLimited(i64)
When the command requester has exceeded a ratelimit bucket. The attached value is the time a requester has to wait to run the command again.
OnlyForDM
When the requested command can only be used in a direct message or group channel.
OnlyForGuilds
When the requested command can only be ran in guilds, or the bot doesn't support DMs.
OnlyForOwners
When the requested command can only be used by bot owners.
LackingRole
When the requested command requires one role.
NotEnoughArguments
When there are too few arguments.
Fields of NotEnoughArguments
min: i32 | |
given: usize |
TooManyArguments
When there are too many arguments.
Fields of TooManyArguments
max: i32 | |
given: usize |
IgnoredBot
When the command was requested by a bot user when they are set to be ignored.
WebhookAuthor
When the bot ignores webhooks and a command was issued by one.
Trait Implementations
impl Debug for DispatchError
[src]
impl Debug for DispatchError
Auto Trait Implementations
impl Send for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Sync for DispatchError
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Erased for T
impl<T> Erased for T
impl<T> Typeable for T where
T: Any,
impl<T> Typeable for T where
T: Any,
impl<T> DebugAny for T where
T: Any + Debug,
[src]
impl<T> DebugAny for T where
T: Any + Debug,
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,