Answers for "discord.js on slash command"

2

discord.js slash commands

bot.api.applications(bot.user.id).commands.post({
  data: {
    name: "commandname",
    description: "Command Description",
  },
});
Posted by: Guest on April-02-2021
2

discord.js on slash command

client.on('interactionCreate', (interaction) => {
	if(!interaction.isCommand()) return;
  	interaction.reply('Pong!')
})
Posted by: Guest on August-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language