Skip to content

$oldApplicationCmd

$oldApplicationCmd gets the data from application Callbacks (update and delete one)

Usage

$oldApplicationCmd[option]

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
- New Name: $newApplicationCmd[name]
6
- Old Name: $oldApplicationCmd[name]
7
- New Description: $newApplicationCmd[description]
8
- Old Description: $oldApplicationCmd[description]`
9
});
  • This code will execute when slash command is updated (Modified)