[−][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.
delimiters: &'static [&'static str]
Delimiters used to split the arguments of the command by. If empty, the global delimiters are used.
usage: Option<&'static str>
Command usage schema, used by other commands.
examples: &'static [&'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]
pub fn required_permissions(&self) -> &Permissions
[src]
pub fn allowed_roles(&self) -> &'static [&'static str]
[src]
pub fn checks(&self) -> &'static [&'static Check]
[src]
pub fn only_in(&self) -> OnlyIn
[src]
pub fn help_available(&self) -> bool
[src]
pub fn owners_only(&self) -> bool
[src]
pub fn owner_privilege(&self) -> bool
[src]
impl Debug for CommandOptions
[src]
impl Default for CommandOptions
[src]
pub fn default() -> CommandOptions
[src]
impl PartialEq<CommandOptions> for CommandOptions
[src]
pub fn eq(&self, other: &CommandOptions) -> bool
[src]
pub fn ne(&self, other: &CommandOptions) -> bool
[src]
impl StructuralPartialEq for CommandOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommandOptions
[src]
impl Send for CommandOptions
[src]
impl Sync for CommandOptions
[src]
impl Unpin for CommandOptions
[src]
impl UnwindSafe for CommandOptions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,