DiscordCreateApplicationCommand
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordCreateApplicationCommand
Interface: DiscordCreateApplicationCommand
Extended by
Properties
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.
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
Defined in
packages/types/dist/types/discord.d.ts:2451
description?
optional
description:string
Description for ApplicationCommandTypes.ChatInput
commands, 1-100 characters.
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
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
Defined in
packages/types/dist/types/discord.d.ts:2473
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).
Defined in
packages/types/dist/types/discord.d.ts:2484
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
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.
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
Defined in
packages/types/dist/types/discord.d.ts:2443
nsfw?
optional
nsfw:boolean
Indicates whether the command is age-restricted, defaults to false
Defined in
packages/types/dist/types/discord.d.ts:2475
options?
optional
options:DiscordApplicationCommandOption
[]
Parameters for the command, max of 25
Defined in
packages/types/dist/types/discord.d.ts:2449
type?
optional
type:ApplicationCommandTypes
Type of command, defaults to ApplicationCommandTypes.ChatInput
Defined in
packages/types/dist/types/discord.d.ts:2433
version?
optional
version:string
Auto incrementing version identifier updated during substantial record changes
Defined in
packages/types/dist/types/discord.d.ts:2477