An extension for guild-specific application commands.
Extends
ApplicationCommandManager<ApplicationCommand, {}, Guild>The cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerpermissions:ApplicationCommandPermissionsManager<{ command?: ApplicationCommandResolvable } & {}, { command: ApplicationCommandResolvable } & {}, Guild, null>
The manager for permissions of arbitrary commands on arbitrary guilds
Inherited from ApplicationCommandManagerCreates an application command.
Example
| Name | Type | Optional | Description |
|---|---|---|---|
| command | ApplicationCommandDataResolvable | No | The command |
Deletes an application command.
Example
| Name | Type | Optional | Description |
|---|---|---|---|
| command | ApplicationCommandResolvable | No | The command to delete |
Edits an application command.
Example
| Name | Type | Optional | Description |
|---|---|---|---|
| command | ApplicationCommandResolvable | No | The command to edit |
| data | Partial<ApplicationCommandDataResolvable> | No | The data to update the command with |
Obtains one or multiple application commands from Discord, or the cache if it's already available.
Example
Example
| Name | Type | Optional | Description |
|---|---|---|---|
| id | Snowflake | No | Options for fetching application command(s) |
| options | FetchGuildApplicationCommandFetchOptions | Yes | Additional options for this fetch |
Resolves a data entry to a data Object.
Returns
An instance from this Manager| Name | Type | Optional | Description |
|---|---|---|---|
| idOrInstance | Holds | No | The id or instance of something in this Manager |
Resolves a data entry to an instance id.
Returns
| Name | Type | Optional | Description |
|---|---|---|---|
| idOrInstance | Key | Holds | No | The id or instance of something in this Manager |
Sets all the commands for this application or guild.
Example
Example
| Name | Type | Optional | Description |
|---|---|---|---|
| commands | readonly ApplicationCommandDataResolvable[] | No | The commands |