Struct serenity::builder::CreateApplicationCommand [−][src]
Expand description
A builder for creating a new ApplicationCommand
.
Self::name
and Self::description
are required fields.
Implementations
This is supported on crate feature unstable_discord_api
only.
unstable_discord_api
only.Specify the name of the Interaction.
Note: Must be between 1 and 32 characters long, and cannot start with a space.
This is supported on crate feature unstable_discord_api
only.
unstable_discord_api
only.Specify if the command should not be usable by default
Note: Setting it to false will disable it for anyone, including administrators and guild owners.
This is supported on crate feature unstable_discord_api
only.
unstable_discord_api
only.Specify the description of the Interaction.
Note: Must be between 1 and 100 characters long.
pub fn create_option<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandOption) -> &mut CreateApplicationCommandOption,
[src]This is supported on crate feature unstable_discord_api
only.
pub fn create_option<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandOption) -> &mut CreateApplicationCommandOption,
[src]unstable_discord_api
only.Create an interaction option for the interaction.
Note: Interactions can only have up to 10 options.
This is supported on crate feature unstable_discord_api
only.
unstable_discord_api
only.Add an interaction option for the interaction.
Note: Interactions can only have up to 10 options.
This is supported on crate feature unstable_discord_api
only.
unstable_discord_api
only.Sets all the interaction options for the interaction.
Note: Interactions can only have up to 10 options.
Trait Implementations
unstable_discord_api
only.unstable_discord_api
only.unstable_discord_api
only.Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CreateApplicationCommand
impl Send for CreateApplicationCommand
impl Sync for CreateApplicationCommand
impl Unpin for CreateApplicationCommand
impl UnwindSafe for CreateApplicationCommand
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