Deleting commands followed but still appear on Discord
Up until yesterday was using 14.8.0, now 14.9.0, I have a problem where the bot has slash commands appear that are no longer within my code because I used the deleting commands guide https://discordjs.guide/slash-commands/deleting-commands.html#deleting-specific-commands but brought back a different branch that may have had it, deleted it via the IDE's files once more. Now I have the commands still look as if they are available but they do not work because the commands with those id's are no longer available with the project, and I am unsure how to get rid of the commands from this point. I do not have any commands as of now except context menu's which works.
10 Replies
• 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.How can I get their id? Would it be through Discord?
awesome, thank you!
Okay so this didn't work...
is this not working because one is delete the other is put? https://sourceb.in/sGaJ7QzwRF
no, it’s not in in the index.js file that gets run often. it’s one that gets called only when i need to delete or add commands
If you have duplicate commands on your server, you registered both global and guild commands.
You can remove the duplicates by resetting either the global or guild commands
• Resetting global commands:
rest.put(Routes.applicationCommands(clientId), { body: [] })
• Resetting guild commands: rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: [] })
got it, I'll try that out. Thanks, both
Nope, I'm getting error 10063 Unknown application command
I deleted the files accidentally 😭 but the commands are still there
oh, alright
still 10063, I don't think it's guild commands
but I did fix what you mentioned here, thank you
Yes, but I still have them because I still have the commands. Do I just wait then? To see if it worked? I keep getting that error so I thought it hasn't worked yet
got it!
doing it now 🙂
I just checked: they still have the same id
or am I misunderstanding something?
I tried both (cause I forget whether I kept it global or guild)
yes I did
oh...
it says it's from the same though
alright
done but it's still there hmm...
they are not
yes
Yes it does go through
or what do you mean by go through?
in logs yes
I think I got it. I didn't realize there were two different functions 😅
Thank you all!