how to use slash commands discord.js code example
Example: discord.js slash commands
bot.api.applications(bot.user.id).commands.post({
data: {
name: "commandname",
description: "Command Description",
},
});
bot.api.applications(bot.user.id).commands.post({
data: {
name: "commandname",
description: "Command Description",
},
});