DiscordApplicationCommand
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordApplicationCommand
Interface: DiscordApplicationCommand
Extends
Properties
application_id
application_id:
string
ID of the parent application
Defined in
packages/types/dist/types/discord.d.ts:2427
contexts?
optional
contexts:null
|DiscordInteractionContextType
[]
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
Defined in
packages/types/dist/types/discord.d.ts:2467
default_member_permissions?
optional
default_member_permissions:null
|string
Set of permissions represented as a bit set
Inherited from
DiscordCreateApplicationCommand
.default_member_permissions
Defined in
packages/types/dist/types/discord.d.ts:2451
description?
optional
description:string
Description for ApplicationCommandTypes.ChatInput
commands, 1-100 characters.
Inherited from
DiscordCreateApplicationCommand
.description
Defined in
packages/types/dist/types/discord.d.ts:2445
description_localizations?
optional
description_localizations:null
|Partial
<Record
<Locales
,string
>>
Localization object for description
field. Values follow the same restrictions as description
Inherited from
DiscordCreateApplicationCommand
.description_localizations
Defined in
packages/types/dist/types/discord.d.ts:2447
dm_permission?
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.
Deprecated
use contexts instead
Inherited from
DiscordCreateApplicationCommand
.dm_permission
Defined in
packages/types/dist/types/discord.d.ts:2473
guild_id?
optional
guild_id:string
Guild id of the command, if not global
Defined in
packages/types/dist/types/discord.d.ts:2429
handler?
optional
handler:DiscordInteractionEntryPointCommandHandlerType
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
Defined in
packages/types/dist/types/discord.d.ts:2484
id
id:
string
Unique ID of command
Defined in
packages/types/dist/types/discord.d.ts:2425
integration_types?
optional
integration_types:DiscordApplicationIntegrationType
[]
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
Defined in
packages/types/dist/types/discord.d.ts:2459
name
name:
string
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
Defined in
packages/types/dist/types/discord.d.ts:2441
name_localizations?
optional
name_localizations:null
|Partial
<Record
<Locales
,string
>>
Localization object for name
field. Values follow the same restrictions as name
Inherited from
DiscordCreateApplicationCommand
.name_localizations
Defined in
packages/types/dist/types/discord.d.ts:2443
nsfw?
optional
nsfw:boolean
Indicates whether the command is age-restricted, defaults to false
Inherited from
DiscordCreateApplicationCommand
.nsfw
Defined in
packages/types/dist/types/discord.d.ts:2475
options?
optional
options:DiscordApplicationCommandOption
[]
Parameters for the command, max of 25
Inherited from
DiscordCreateApplicationCommand
.options
Defined in
packages/types/dist/types/discord.d.ts:2449
type?
optional
type:ApplicationCommandTypes
Type of command, defaults to ApplicationCommandTypes.ChatInput
Inherited from
DiscordCreateApplicationCommand
.type
Defined in
packages/types/dist/types/discord.d.ts:2433
version?
optional
version:string
Auto incrementing version identifier updated during substantial record changes
Inherited from
DiscordCreateApplicationCommand
.version
Defined in
packages/types/dist/types/discord.d.ts:2477