Deprecated
API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
import { type APIApplicationCommand } from "https://deno.land/x/discord_api_types@0.37.30/payloads/v8/interactions.ts";
Properties
id: Snowflake
Unique id of the command
type: ApplicationCommandType
Type of the command
application_id: Snowflake
Unique id of the parent application
optional
guild_id: SnowflakeGuild id of the command, if not global
1-32 character name; CHAT_INPUT
command names must be all lowercase matching ^[\w-]{1,32}$
1-100 character description for CHAT_INPUT
commands, empty string for USER
and MESSAGE
commands
optional
options: APIApplicationCommandOption[]The parameters for the CHAT_INPUT
command, max 25
Whether the command is enabled by default when the app is added to a guild
If missing, this property should be assumed as true
version: Snowflake
Autoincrementing version identifier updated during substantial record changes