Struct command::object::ApplicationCommand
zaun_community_protocol::command::object::ApplicationCommand · Struct
pub struct ApplicationCommand { … }An application command.
Fields
Section titled “Fields”command_id: Option<CommandId>
Section titled “command_id: Option<CommandId>”Host-assigned; absent in command.set.
bot_id: Option<BotId>
Section titled “bot_id: Option<BotId>”The bot that owns it: in command.list and command.updated, absent elsewhere.
kind: CommandType
Section titled “kind: CommandType”Slash, user or message command.
name: String
Section titled “name: String”The name.
name_localizations: BTreeMap<String, String>
Section titled “name_localizations: BTreeMap<String, String>”Localized names.
description: String
Section titled “description: String”1–100 scalars for slash commands; "" for user and message commands.
description_localizations: BTreeMap<String, String>
Section titled “description_localizations: BTreeMap<String, String>”Localized descriptions.
options: Vec<CommandOption>
Section titled “options: Vec<CommandOption>”Slash commands only, ≤ 25.
default_member_permissions: Option<Permissions>
Section titled “default_member_permissions: Option<Permissions>”Bits the invoker needs in the channel; "0" is owner only; absent is everyone.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, PartialEq, Serialize, StructuralPartialEq