Inn3X
Inn3X
DIAdiscord.js - Imagine an app
Created by Inn3X on 9/3/2023 in #djs-questions
create a SlashCommandBuilder
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!')
}
}
})
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? :(
2 replies