The client that this deployer will use.
Readonly
clientThe client that this deployer will use.
SlashCommandDeployer
Readonly
restA rest client to interact with the Discord API.
SlashCommandDeployer
Deploy the commands registered to this deployer's client registry globally. Keep in mind that changes may take up to 1 hour to take effect.
A promise that resolves once all the commands have been deployed.
client#commandDeployed
client#error
Deploy the commands registered to this deployer's client registry to a given guild.
The ID of the guild to deploy the commands to.
A promise that resolves once all the commands have been deployed.
client#commandDeployed
client#error
Deploy the commands registered to this deployer's client registry to multiple guilds.
An array with the IDs of the guilds to deploy the commands to.
A promise that resolves once all the commands have been deployed.
client#commandDeployed
client#error
Generated using TypeDoc
A class to deploy slash commands to Discord. It can deploy globally or to a single guild. Keep in mind that deploying globally can take up to 1 hour for changes to take effect, while deploying for a single guild is immediate.