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
d.js toolkit
d.js toolkit16mo ago
- 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!
treble/luna
treble/luna16mo ago
i dont see the code where you populate client.commands there
BOSSx
BOSSxOP16mo ago
ohhhhh
No description
BOSSx
BOSSxOP16mo ago
this is in my index.js
treble/luna
treble/luna16mo ago
seems like your guild commands are in a different directory
BOSSx
BOSSxOP16mo ago
yess they are
treble/luna
treble/luna16mo ago
which you never add to your client.commands
BOSSx
BOSSxOP16mo ago
so i have the global commands path set, how would i do both?
treble/luna
treble/luna16mo ago
do the same logic for your guild commands
BOSSx
BOSSxOP16mo ago
would i just repaste below this and rename variables?
Ashura
Ashura16mo ago
Yeah and also change path to your guild commands path
Want results from more Discord servers?
Add your server