#create a SlashCommandBuilder

1 messages · Page 1 of 1 (latest)

white wedge

i tried:

new Discord.SlashCommandBuilder()
  .setName('ping')
  .setDescription('Replies with Pong!');

bot.on('interactionCreate', async (interaction) => {
  if (interaction.isCommand()) {
    if (interaction.commandName === 'ping') {
      await interaction.reply('pong!')
    }
  }
})

but nothing happens, can y'all help me? :(