declare class ApplicationCommandsAPI
bulkOverwriteGlobalCommandsapplicationId: Snowflake) : Promise<RESTPutAPIApplicationCommandsResult> (
applicationId: Snowflake
Overwrites global commands
bulkOverwriteGuildCommands) : Promise<RESTPutAPIApplicationCommandsResult> (
Bulk overwrites guild commands
createGlobalCommandapplicationId: Snowflake) : Promise<discord_api_types_v10.APIApplicationCommand> (
applicationId: Snowflake
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
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
getGlobalCommandsapplicationId: Snowflakeoptions?: RESTGetAPIApplicationCommandsQuery) : Promise<RESTGetAPIApplicationCommandsResult> (
applicationId: Snowflake
options?: RESTGetAPIApplicationCommandsQuery
Fetches all global commands for a application
getGuildCommand) : Promise<discord_api_types_v10.APIApplicationCommand> (
Fetches a guild command
getGuildCommandPermissions) : Promise<discord_api_types_v10.APIGuildApplicationCommandPermissions> (
Fetches the permissions for a guild command
getGuildCommands) : Promise<RESTGetAPIApplicationCommandsResult> (
Fetches all commands for a guild
getGuildCommandsPermissions) : Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult> (
Fetches all permissions for all commands in a guild