DiscordApplication
The DiscordApplication
class provides methods to interact with Discord application commands such as creating, deleting, editing, fetching, and setting global application commands.
Properties
id
DiscordApplication.id :: string
flags
DiscordApplication.flags :: number
id
DiscordApplication.id :: string
flags
DiscordApplication.flags :: number
Methods
createSlashCommandAsync
DiscordApplication : createSlashCommandAsync () -> Vendor.Future<CommandResponse>
command: CommandBuilder.CommandBuilder The command to create.
Creates a new slash command for the Discord application.
deleteSlashCommandAsync
DiscordApplication : deleteSlashCommandAsync () -> Vendor.Future<CommandResponse>
commandId: string The ID of the command to delete.
Deletes an existing slash command from the Discord application.
editSlashCommandAsync
DiscordApplication : editSlashCommandAsync () -> Vendor.Future<CommandResponse>
commandId: string The ID of the command to edit.
command: CommandBuilder.CommandBuilder The updated command data.
Edits an existing slash command for the Discord application.
fetchSlashCommandsAsync
Fetches all existing slash commands for the Discord application.
setSlashCommandsAsync
Sets the slash commands for the Discord application, updating existing ones and creating or deleting as necessary.
Functions
new
Creates a new instance of the DiscordApplication.