$newApplicationCmd
$newApplicationCmd
gets the data from application Callbacks (update and create one).
Usage
$newApplicationCmd[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 command. |
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- Name: $newApplicationCmd[name]6- ID: $newApplicationCmd[id]7- Application ID: $newApplicationCmd[applicationID]`8});
- This code will execute when slash command is updated (Modified)