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 } & PermissionsOptionsExtras,
{ command: ApplicationCommandResolvable } & PermissionsOptionsExtras,
PermissionsGuildType,
null
>
The manager for permissions of arbitrary commands on arbitrary guilds
Inherited from ApplicationCommandManagerCreates an application command.
Name | Type | Optional | Description |
---|---|---|---|
command | ApplicationCommandDataResolvable | No | The command |
Deletes an application command.
Name | Type | Optional | Description |
---|---|---|---|
command | ApplicationCommandResolvable | No | The command to delete |
Edits an application command.
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.
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 ManagerName | 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 | K | Holds | No | The id or instance of something in this Manager |
Sets all the commands for this application or guild.
Name | Type | Optional | Description |
---|---|---|---|
commands | ApplicationCommandDataResolvable[] | No | The commands |