Discord js slash commands edit 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",
},
});