DiscordApplicationCommand
Documentation / @discordeno/bot / DiscordApplicationCommand
Interface: DiscordApplicationCommand
Defined in: packages/types/dist/types/discord.d.ts:2426
Extends
Properties
application_id
application_id:
string
Defined in: packages/types/dist/types/discord.d.ts:2430
ID of the parent application
contexts?
optional
contexts:null
|DiscordInteractionContextType
[]
Defined in: packages/types/dist/types/discord.d.ts:2470
Interaction context(s) where the command can be used
Remarks
This value is available only for globally-scoped commands By default, all interaction context types included for new commands.
Inherited from
DiscordCreateApplicationCommand
.contexts
default_member_permissions?
optional
default_member_permissions:null
|string
Defined in: packages/types/dist/types/discord.d.ts:2454
Set of permissions represented as a bit set
Inherited from
DiscordCreateApplicationCommand
.default_member_permissions
description?
optional
description:string
Defined in: packages/types/dist/types/discord.d.ts:2448
Description for ApplicationCommandTypes.ChatInput
commands, 1-100 characters.
Inherited from
DiscordCreateApplicationCommand
.description
description_localizations?
optional
description_localizations:null
|Partial
<Record
<Locales
,string
>>
Defined in: packages/types/dist/types/discord.d.ts:2450
Localization object for description
field. Values follow the same restrictions as description
Inherited from
DiscordCreateApplicationCommand
.description_localizations
dm_permission?
optional
dm_permission:boolean
Defined in: packages/types/dist/types/discord.d.ts:2476
Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible.
Deprecated
use contexts instead
Inherited from
DiscordCreateApplicationCommand
.dm_permission
guild_id?
optional
guild_id:string
Defined in: packages/types/dist/types/discord.d.ts:2432
Guild id of the command, if not global
handler?
optional
handler:DiscordInteractionEntryPointCommandHandlerType
Defined in: packages/types/dist/types/discord.d.ts:2487
Determines whether the interaction is handled by the app's interactions handler or by Discord
Remarks
This can only be set for application commands of type PRIMARY_ENTRY_POINT
for applications with the EMBEDDED
flag (i.e. applications that have an Activity).
Inherited from
DiscordCreateApplicationCommand
.handler
id
id:
string
Defined in: packages/types/dist/types/discord.d.ts:2428
Unique ID of command
integration_types?
optional
integration_types:DiscordApplicationIntegrationType
[]
Defined in: packages/types/dist/types/discord.d.ts:2462
Installation contexts where the command is available
Remarks
This value is available only for globally-scoped commands Defaults to the application configured contexts
Inherited from
DiscordCreateApplicationCommand
.integration_types
name
name:
string
Defined in: packages/types/dist/types/discord.d.ts:2444
Name of command, 1-32 characters.
ApplicationCommandTypes.ChatInput
command names must match the following regex ^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$
with the unicode flag set.
If there is a lowercase variant of any letters used, you must use those.
Characters with no lowercase variants and/or uncased letters are still allowed.
ApplicationCommandTypes.Userand
ApplicationCommandTypes.Message` commands may be mixed case and can include spaces.
Inherited from
DiscordCreateApplicationCommand
.name
name_localizations?
optional
name_localizations:null
|Partial
<Record
<Locales
,string
>>
Defined in: packages/types/dist/types/discord.d.ts:2446
Localization object for name
field. Values follow the same restrictions as name
Inherited from
DiscordCreateApplicationCommand
.name_localizations
nsfw?
optional
nsfw:boolean
Defined in: packages/types/dist/types/discord.d.ts:2478
Indicates whether the command is age-restricted, defaults to false
Inherited from
DiscordCreateApplicationCommand
.nsfw
options?
optional
options:DiscordApplicationCommandOption
[]
Defined in: packages/types/dist/types/discord.d.ts:2452
Parameters for the command, max of 25
Inherited from
DiscordCreateApplicationCommand
.options
type?
optional
type:ApplicationCommandTypes
Defined in: packages/types/dist/types/discord.d.ts:2436
Type of command, defaults to ApplicationCommandTypes.ChatInput
Inherited from
DiscordCreateApplicationCommand
.type
version?
optional
version:string
Defined in: packages/types/dist/types/discord.d.ts:2480
Auto incrementing version identifier updated during substantial record changes