[−][src]Struct serenity::framework::standard::CommandOptions
Fields
checks: Vec<Check>
A set of checks to be called prior to executing the command. The checks
will short-circuit on the first check that returns false
.
bucket: Option<String>
Ratelimit bucket.
desc: Option<String>
Command description, used by other commands.
example: Option<String>
Example arguments, used by other commands.
usage: Option<String>
Command usage schema, used by other commands.
min_args: Option<i32>
Minimum amount of arguments that should be passed.
max_args: Option<i32>
Maximum amount of arguments that can be passed.
required_permissions: Permissions
Permissions required to use this command.
allowed_roles: Vec<String>
Roles allowed to use this command.
help_available: bool
Whether command should be displayed in help list or not, used by other commands.
dm_only: bool
Whether command can be used only privately or not.
guild_only: bool
Whether command can be used only in guilds or not.
owner_privileges: bool
Whether the command treats owners as normal users.
owners_only: bool
Whether command can only be used by owners or not.
aliases: Vec<String>
Other names that can be used to call this command instead.
Trait Implementations
impl Default for CommandOptions
[src]
impl Default for CommandOptions
fn default() -> CommandOptions
[src]
fn default() -> CommandOptions
Returns the "default value" for a type. Read more
impl Debug for CommandOptions
[src]
impl Debug for CommandOptions
Auto Trait Implementations
impl Send for CommandOptions
impl Send for CommandOptions
impl Sync for CommandOptions
impl Sync for CommandOptions
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,