Struct serenity::builder::CreateApplicationCommandsPermissions [−][src]
Expand description
A builder for creating several ApplicationCommandPermission
.
Implementations
pub fn create_application_command<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandPermissions) -> &mut CreateApplicationCommandPermissions,
[src]This is supported on crate feature unstable_discord_api
only.
pub fn create_application_command<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandPermissions) -> &mut CreateApplicationCommandPermissions,
[src]This is supported on crate feature
unstable_discord_api
only.Creates a new application command.
pub fn add_application_command(
&mut self,
application_command: CreateApplicationCommandPermissions
) -> &mut Self
[src]This is supported on crate feature unstable_discord_api
only.
pub fn add_application_command(
&mut self,
application_command: CreateApplicationCommandPermissions
) -> &mut Self
[src]This is supported on crate feature
unstable_discord_api
only.Adds a new interaction.
pub fn set_application_commands(
&mut self,
application_commands: Vec<CreateApplicationCommandPermissions>
) -> &mut Self
[src]This is supported on crate feature unstable_discord_api
only.
pub fn set_application_commands(
&mut self,
application_commands: Vec<CreateApplicationCommandPermissions>
) -> &mut Self
[src]This is supported on crate feature
unstable_discord_api
only.Sets all the interactions.
Trait Implementations
This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.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
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V