Mentioning slash commands not working
Hi, i want to mention the slash command so that its clickable.
I think i did the code right can you help
4 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 staff1. Don't fetch commands for each command. Fetch outside of the for loop 1 time.
2. <@&id> is the role mention. For slash commands it's </name:id>
that would be this line of code your refering to
and it should be changed to
there is a function for this right ?
chatInputApplicationCommandMention()
i use this but idk if its there in new versions