Registering a command
Here's how to register a command.
client.api.applications(client.user.id).guilds('guild-id-here').commands.post({
data: {
name: "help",
description: "Get information about the bot."
// possible options here e.g. options: [{...}]
}
});client.api.applications(client.user.id).commands.post({
data: {
name: "help",
description: "Get information about the bot."
// possible options here e.g. options: [{...}]
}
});Last updated