class ApplicationCommandsAPI

declare class ApplicationCommandsAPI

Constructors

constructor(
rest: REST
)

Constructs a new instance of the ApplicationCommandsAPI class

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

Deletes a global command

See also: https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command

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

Deletes a guild command

See also: https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command