InteractionCreate.js / deploy-command.js
so i put them both into deploy-commands.js right,
https://pastebin.com/YkXsdYic
and this is what my interactionCreate.js looks like:
https://pastebin.com/e0K3iDHN
the guild commands don't show up in other servers (which is exactly how i want them to be,) but when i run them, it says:
No command matching (my guild command's name) was found.
the global commands work fine tho, just my guild commands don't work,Pastebin
Deploy Guild & Global Commands - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
const { Events, ActionRowBuilder, EmbedBuilder, ButtonBuilder, Butt...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
11 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!i dont see the code where you populate client.commands there
ohhhhh
this is in my index.js
seems like your guild commands are in a different directory
yess they are
which you never add to your client.commands
so i have the global commands path set, how would i do both?
do the same logic for your guild commands
would i just repaste below this and rename variables?
Yeah and also change path to your guild commands path