Skip to content

$getApplicationCommandID

$getApplicationCommandID will return the ID of a given application command.

Usage

$getApplicationCommandID[name;type?]

Parameters

FieldTypeDescriptionRequired
namestringName of the application command.true
type?stringApplication command type.
1. global (default)
2. guildID (specific guild ID)
false

Example(s)

This will return the ID of an application command called “example”, (if any):

1
client.command({
2
name: "getApplicationCommandID",
3
code: `
4
$getApplicationCommandID[example;global]
5
`
6
});