GuildApplicationCommandManager

export class GuildApplicationCommandManager extends ApplicationCommandManager<ApplicationCommand, {}, Guild>
export class GuildApplicationCommandManager extends ApplicationCommandManager<ApplicationCommand, {}, Guild>
An extension for guild-specific application commands.
Readonly
cache:Collection<K, Holds>
The cache of items for this manager.
Inherited from DataManager
Readonly
client:Client
The client that instantiated this Manager
Inherited from BaseManager
guild:Guild
The guild that this manager belongs to
Readonly
holds:Constructable<Holds>
The data structure belonging to this manager.
Inherited from DataManager
permissions:ApplicationCommandPermissionsManager< { command?: ApplicationCommandResolvable } & PermissionsOptionsExtras, { command: ApplicationCommandResolvable } & PermissionsOptionsExtras, PermissionsGuildType, null >
The manager for permissions of arbitrary commands on arbitrary guilds
Inherited from ApplicationCommandManager
create(command):Promise<ApplicationCommand>
Creates an application command.
NameTypeOptionalDescription
commandApplicationCommandDataResolvableNoThe command
delete(command):Promise<ApplicationCommand | null>
Deletes an application command.
NameTypeOptionalDescription
commandApplicationCommandResolvableNoThe command to delete
edit(command, data):Promise<ApplicationCommand>
Edits an application command.
NameTypeOptionalDescription
commandApplicationCommandResolvableNoThe command to edit
dataPartial<ApplicationCommandDataResolvable>NoThe data to update the command with
fetch(id, options?):Promise<ApplicationCommand>
Obtains one or multiple application commands from Discord, or the cache if it's already available.
NameTypeOptionalDescription
idSnowflakeNoOptions for fetching application command(s)
optionsFetchGuildApplicationCommandFetchOptionsYesAdditional options for this fetch
resolve(idOrInstance):Holds
Resolves a data entry to a data Object.
Returns
An instance from this Manager
NameTypeOptionalDescription
idOrInstanceHoldsNoThe id or instance of something in this Manager
resolveId(idOrInstance):K
Resolves a data entry to an instance id.
Returns
NameTypeOptionalDescription
idOrInstanceK | HoldsNoThe id or instance of something in this Manager
set(commands):Promise<Collection<Snowflake, ApplicationCommand>>
Sets all the commands for this application or guild.
NameTypeOptionalDescription
commandsApplicationCommandDataResolvable[]NoThe commands
valueOf():Collection<K, Holds>