create a SlashCommandBuilder
i tried:
but nothing happens, can y'all help me? :(
but nothing happens, can y'all help me? :(
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!')
}
}
})