[−][src]Struct serenity::framework::standard::CommandOptions
Fields
checks: &'static [&'static 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<&'static str>
Ratelimit bucket.
names: &'static [&'static str]
Names that the command can be referred to.
desc: Option<&'static str>
Command description, used by other commands.
usage: Option<&'static str>
Command usage schema, used by other commands.
example: Option<&'static str>
Example arguments, used by other commands.
min_args: Option<u16>
Minimum amount of arguments that should be passed.
max_args: Option<u16>
Maximum amount of arguments that can be passed.
allowed_roles: &'static [&'static str]
Roles allowed to use this command.
required_permissions: Permissions
Permissions required to use this command.
help_available: bool
Whether the command should be displayed in help list or not, used by other commands.
only_in: OnlyIn
Whether the command can only be used in dms or guilds; or both.
owners_only: bool
Whether the command can only be used by owners or not.
owner_privilege: bool
Whether the command treats owners as normal users.
sub_commands: &'static [&'static Command]
Other commands belonging to this command.
Trait Implementations
impl<'_> CommonOptions for &'_ CommandOptions
[src]
fn required_permissions(&self) -> &Permissions
[src]
fn allowed_roles(&self) -> &'static [&'static str]
[src]
fn only_in(&self) -> OnlyIn
[src]
fn help_available(&self) -> bool
[src]
fn owners_only(&self) -> bool
[src]
fn owner_privilege(&self) -> bool
[src]
impl PartialEq<CommandOptions> for CommandOptions
[src]
fn eq(&self, other: &CommandOptions) -> bool
[src]
fn ne(&self, other: &CommandOptions) -> bool
[src]
impl Debug for CommandOptions
[src]
Auto Trait Implementations
impl Sync for CommandOptions
impl Send for CommandOptions
impl Unpin for CommandOptions
impl RefUnwindSafe for CommandOptions
impl UnwindSafe for CommandOptions
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> UnsafeAny for T where
T: Any,
T: Any,