Skip to main content
Version: 0.37.12

APIApplicationCommand

@deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

Index

Properties

application_id

application_id: string

Unique id of the parent application

optionaldefault_permission

default_permission?: boolean

Whether the command is enabled by default when the app is added to a guild

If missing, this property should be assumed as true

description

description: string

1-100 character description for CHAT_INPUT commands, empty string for USER and MESSAGE commands

optionalguild_id

guild_id?: string

Guild id of the command, if not global

id

id: string

Unique id of the command

name

name: string

1-32 character name; CHAT_INPUT command names must be all lowercase matching ^[\w-]{1,32}$

optionaloptions

The parameters for the CHAT_INPUT command, max 25

type

Type of the command

version

version: string

Autoincrementing version identifier updated during substantial record changes