Skip to main content
Module

x/discord_api_types/v9.ts>APIApplicationCommand

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APIApplicationCommand
Re-export
import { type APIApplicationCommand } from "https://deno.land/x/discord_api_types@0.37.11/v9.ts";

Properties

Unique id of the command

Type of the command

application_id: Snowflake

Unique id of the parent application

optional
guild_id: Snowflake

Guild id of the command, if not global

name: string

1-32 character name; CHAT_INPUT command names must be all lowercase matching ^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$

optional
name_localizations: LocalizationMap | null

Localization dictionary for the name field. Values follow the same restrictions as name

optional
name_localized: string

The localized name

description: string

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

optional
description_localizations: LocalizationMap | null

Localization dictionary for the description field. Values follow the same restrictions as description

optional
description_localized: string

The localized description

optional
options: APIApplicationCommandOption[]

The parameters for the CHAT_INPUT command, max 25

default_member_permissions: Permissions | null

Set of permissions represented as a bitset

optional
dm_permission: boolean

Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible

optional
deprecated
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

version: Snowflake

Autoincrementing version identifier updated during substantial record changes