Struct serenity::builder::CreateApplicationCommands [−][src]
Tuple Fields
0: Vec<Value>
Implementations
pub fn create_application_command<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommand) -> &mut CreateApplicationCommand,
pub fn create_application_command<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommand) -> &mut CreateApplicationCommand,
Creates a new application command.
Adds a new application command.
pub fn set_application_commands(
&mut self,
commands: Vec<CreateApplicationCommand>
) -> &mut Self
pub fn set_application_commands(
&mut self,
commands: Vec<CreateApplicationCommand>
) -> &mut Self
Sets all the application commands.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CreateApplicationCommands
impl Send for CreateApplicationCommands
impl Sync for CreateApplicationCommands
impl Unpin for CreateApplicationCommands
impl UnwindSafe for CreateApplicationCommands
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more