Discord.js Slash Commands
bot.api.applications(bot.user.id).commands.post({
data: {
name: "commandname",
description: "Command Description",
},
});
YodaForce157
bot.api.applications(bot.user.id).commands.post({
data: {
name: "commandname",
description: "Command Description",
},
});
client.on('interactionCreate', (interaction) => {
if(!interaction.isCommand()) return;
interaction.reply('Pong!')
})