Struct serenity::builder::CreateApplicationCommandsPermissions [−][src]
Expand description
A builder for creating several ApplicationCommandPermission
.
Tuple Fields
0: Vec<Value>
Implementations
pub fn create_application_command<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandPermissions) -> &mut CreateApplicationCommandPermissions,
pub fn create_application_command<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandPermissions) -> &mut CreateApplicationCommandPermissions,
Creates a new application command.
pub fn add_application_command(
&mut self,
application_command: CreateApplicationCommandPermissions
) -> &mut Self
pub fn add_application_command(
&mut self,
application_command: CreateApplicationCommandPermissions
) -> &mut Self
Adds a new application command.
pub fn set_application_commands(
&mut self,
application_commands: Vec<CreateApplicationCommandPermissions>
) -> &mut Self
pub fn set_application_commands(
&mut self,
application_commands: Vec<CreateApplicationCommandPermissions>
) -> &mut Self
Sets all the application commands.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl Send for CreateApplicationCommandsPermissions
impl Sync for CreateApplicationCommandsPermissions
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