$oldApplicationCmd
$oldApplicationCmd gets the data from application Callbacks (update and delete one)
Usage
$oldApplicationCmd[option]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| option | string | Option to retrieve. | true |
Options
| Field | Type | Description |
|---|---|---|
| name | string | Name of slash commnad. |
| id | number | ID of slash commnad. |
| description | string | Description of slash commnad. |
| version | number | Version of slash command. |
| options | string | Options of slash command. |
| guildID | number | Guild ID of slash command. |
| applicationID | number | Returns application ID. |
| defaultPermission | string | Returns Default Permissions of slash command. |
| timestamp | string | Returns timestamp of the creation of slash command (in ms). |
| createdAt | string | Returns the date of creation of slash command. |
Example(s)
1client.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)