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

pub struct CommandGroup {
    pub prefixes: Option<Vec<String>>,
    pub commands: HashMap<String, CommandOrAlias>,
    pub bucket: Option<String>,
    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 help: Option<Arc<Help>>,
    pub checks: Vec<Check>,
    pub default_command: Option<CommandOrAlias>,
    pub description: Option<String>,
}

Fields

prefixes: Option<Vec<String>>commands: HashMap<String, CommandOrAlias>bucket: Option<String>

Some fields taken from Command

required_permissions: Permissionsallowed_roles: Vec<String>help_available: booldm_only: boolguild_only: boolowner_privileges: boolowners_only: boolhelp: Option<Arc<Help>>checks: Vec<Check>

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

default_command: Option<CommandOrAlias>description: Option<String>

Trait Implementations

impl Default for CommandGroup[src]

impl Debug for CommandGroup[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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

impl<T> UnsafeAny for T where
    T: Any