Command Map
async execute(interaction, client) {
const { commands } = interaction.client;
applog('error', commands.map(command => command.name).join(', '))
const embed = new EmbedBuilder() .setTitle('Here's a list of all my commands:') .addFields( { name: 'Commands:', value: commands.map(command => command.name).join(', ') }, { name: '\u200B', value:
const { commands } = interaction.client;
applog('error', commands.map(command => command.name).join(', '))
const embed = new EmbedBuilder() .setTitle('Here's a list of all my commands:') .addFields( { name: 'Commands:', value: commands.map(command => command.name).join(', ') }, { name: '\u200B', value:
For help on a specific command send: \
help [command name]``}
)
await interaction.reply({ embeds: [embed] }).then(msg => {
setTimeout(() => msg.delete(), 15000)
});
},
Where is my mistake? The only response in the console is: , , , , ,
Thank you very much for your help3 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPThanks to @Mikael . We finally found a way together 🙂