declare class ApplicationCommandsAPI
bulkOverwriteGlobalCommandsapplicationId: Snowflake) : Promise<RESTPutAPIApplicationCommandsResult> (
Overwrites global commands
bulkOverwriteGuildCommands) : Promise<RESTPutAPIApplicationCommandsResult> (
Bulk overwrites guild commands
createGlobalCommandapplicationId: Snowflake) : Promise<discord_api_types_v10.APIApplicationCommand> (
Creates a new global command
createGuildCommand) : Promise<discord_api_types_v10.APIApplicationCommand> (
Creates a new command for a guild
Deletes a global command
Deletes a guild command
editGlobalCommand) : Promise<discord_api_types_v10.APIApplicationCommand> (
Edits a global command
editGuildCommand) : Promise<discord_api_types_v10.APIApplicationCommand> (
Edits a guild command
See also: https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command
editGuildCommandPermissions) : Promise<discord_api_types_v10.APIGuildApplicationCommandPermissions> (
Edits the permissions for a guild command
getGlobalCommand) : Promise<discord_api_types_v10.APIApplicationCommand> (
Fetches a global command
See also: https://discord.com/developers/docs/interactions/application-commands#get-global-application-command
getGlobalCommandsapplicationId: Snowflakeoptions?: RESTGetAPIApplicationCommandsQuery) : Promise<RESTGetAPIApplicationCommandsResult> (
Fetches all global commands for a application
getGuildCommand) : Promise<discord_api_types_v10.APIApplicationCommand> (
Fetches a guild command
See also: https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command
getGuildCommandPermissions) : Promise<discord_api_types_v10.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