Skip to content

Struct command::object::ApplicationCommand

zaun_community_protocol::command::object::ApplicationCommand · Struct

pub struct ApplicationCommand { … }

An application command.

Host-assigned; absent in command.set.

The bot that owns it: in command.list and command.updated, absent elsewhere.

Slash, user or message command.

The name.

name_localizations: BTreeMap<String, String>

Section titled “name_localizations: BTreeMap<String, String>”

Localized names.

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.

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.

Clone, Debug, Deserialize<'de>, PartialEq, Serialize, StructuralPartialEq

Full rustdoc page