Skip to content

$newApplicationCmd

$newApplicationCmd gets the data from application Callbacks (update and create one).

Usage

$newApplicationCmd[name]

Parameters

FieldTypeDescriptionRequired
optionstringOption to retrieve.true

Options

FieldTypeDescription
namestringName of slash commnad.
idnumberID of slash commnad.
descriptionstringDescription of slash commnad.
versionnumberVersion of slash command.
optionsstringOptions of slash command.
guildIDnumberGuild ID of slash command.
applicationIDnumberReturns application ID.
defaultPermissionstringReturns Default Permissions of slash command.
timestampstringReturns timestamp of the creation of slash command (in ms).
createdAtstringReturns the date of creation of slash command.

Example(s)

1
client.applicationCmdUpdateCommand({
2
channel: "channelid",
3
code: `
4
Slash command was updated!
5
- Name: $newApplicationCmd[name]
6
- ID: $newApplicationCmd[id]
7
- Application ID: $newApplicationCmd[applicationID]`
8
});
  • This code will execute when slash command is updated (Modified)