how to create a simple /modal form command

The /modal command code structure should look something like this
module.exports = {
name: 'ping',
description: 'Pong!',

callback: (client, interaction) => {
interaction.reply(`Pong! 🏓🏓🏓 My ping is ${client.ws.ping}ms`);
},
};
module.exports = {
name: 'ping',
description: 'Pong!',

callback: (client, interaction) => {
interaction.reply(`Pong! 🏓🏓🏓 My ping is ${client.ws.ping}ms`);
},
};
1 Reply
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
Want results from more Discord servers?
Add your server