export declare class ApplicationCommandsAPI
bulkOverwriteGlobalCommandsapplicationId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTPutAPIApplicationCommandsResult> (
Overwrites global commands
bulkOverwriteGuildCommands) : Promise<RESTPutAPIApplicationCommandsResult> (
Bulk overwrites guild commands
createGlobalCommandapplicationId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<APIApplicationCommand> (
Creates a new global command
createGuildCommand) : Promise<APIApplicationCommand> (
Creates a new command for a guild
deleteGlobalCommand) : Promise<void> (
Deletes a global command
deleteGuildCommand) : Promise<void> (
Deletes a guild command
editGlobalCommand) : Promise<APIApplicationCommand> (
Edits a global command
editGuildCommand) : Promise<APIApplicationCommand> (
Edits a guild command
See also: https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command
editGuildCommandPermissionsuserToken: stringapplicationId: SnowflakeguildId: SnowflakecommandId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<APIGuildApplicationCommandPermissions> (
Edits the permissions for a guild command
getGlobalCommand) : Promise<APIApplicationCommand> (
Fetches a global command
See also: https://discord.com/developers/docs/interactions/application-commands#get-global-application-command
getGlobalCommandsapplicationId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIApplicationCommandsResult> (
Fetches all global commands for a application
getGuildCommand) : Promise<APIApplicationCommand> (
Fetches a guild command
See also: https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command
getGuildCommandPermissions) : Promise<APIGuildApplicationCommandPermissions> (
Fetches the permissions for a guild command
getGuildCommands) : Promise<RESTGetAPIApplicationCommandsResult> (
Fetches all commands for a guild
See also: https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
getGuildCommandsPermissions) : Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult> (
Fetches all permissions for all commands in a guild