[][src]Struct serenity::framework::standard::CommandOptions

pub struct CommandOptions {
    pub checks: Vec<Check>,
    pub bucket: Option<String>,
    pub desc: Option<String>,
    pub example: Option<String>,
    pub usage: Option<String>,
    pub min_args: Option<i32>,
    pub max_args: Option<i32>,
    pub required_permissions: Permissions,
    pub allowed_roles: Vec<String>,
    pub help_available: bool,
    pub dm_only: bool,
    pub guild_only: bool,
    pub owner_privileges: bool,
    pub owners_only: bool,
    pub aliases: Vec<String>,
}

Fields

A set of checks to be called prior to executing the command. The checks will short-circuit on the first check that returns false.

Ratelimit bucket.

Command description, used by other commands.

Example arguments, used by other commands.

Command usage schema, used by other commands.

Minimum amount of arguments that should be passed.

Maximum amount of arguments that can be passed.

Permissions required to use this command.

Roles allowed to use this command.

Whether command should be displayed in help list or not, used by other commands.

Whether command can be used only privately or not.

Whether command can be used only in guilds or not.

Whether the command treats owners as normal users.

Whether command can only be used by owners or not.

Other names that can be used to call this command instead.

Trait Implementations

impl Default for CommandOptions
[src]

Returns the "default value" for a type. Read more

impl Debug for CommandOptions
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 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> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> UnsafeAny for T where
    T: Any