slash commands discord.js for beginners 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",
},
});