class ApplicationCommandsAPI

declare class ApplicationCommandsAPI

Constructors

constructor(
rest: REST
)

Constructs a new instance of the ApplicationCommandsAPI class

Overwrites global commands

Bulk overwrites guild commands

Creates a new global command

Creates a new command for a guild

deleteGlobalCommand(
applicationId: Snowflake
commandId: Snowflake
) : Promise<void>

Deletes a global command

deleteGuildCommand(
applicationId: Snowflake
guildId: Snowflake
commandId: Snowflake
) : Promise<void>

Deletes a guild command

Edits a global command

Edits a guild command

Edits the permissions for a guild command

getGlobalCommand(
applicationId: Snowflake
commandId: Snowflake
) : Promise<discord_api_types_v10.APIApplicationCommand>

Fetches a global command

Fetches all global commands for a application

getGuildCommand(
applicationId: Snowflake
guildId: Snowflake
commandId: Snowflake
) : Promise<discord_api_types_v10.APIApplicationCommand>

Fetches a guild command

getGuildCommandPermissions(
applicationId: Snowflake
guildId: Snowflake
commandId: Snowflake
) : Promise<discord_api_types_v10.APIGuildApplicationCommandPermissions>

Fetches the permissions for a guild command

Fetches all commands for a guild

getGuildCommandsPermissions(
applicationId: Snowflake
guildId: Snowflake
) : Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>

Fetches all permissions for all commands in a guild