Commands

my commands for some reason will not delete from my server
console output
Commands Count: 0
Commands Fetched: 0
console output
Commands Count: 0
Commands Fetched: 0
19 Replies
d.js toolkit
d.js toolkit12mo 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! - Marked as resolved by OP
NyR
NyR12mo ago
If it's already 0, that means there are none, refresh your discord client
SkullGamingHQ
SkullGamingHQOP12mo ago
it is registered with my test discord bot, in my test server
No description
SkullGamingHQ
SkullGamingHQOP12mo ago
tried that 3 times
NyR
NyR12mo ago
They might be global commands?
SkullGamingHQ
SkullGamingHQOP12mo ago
ive tried doing ctrl + r and completely closing the discord client nope i get the same output for global aswell
NyR
NyR12mo ago
So global is also 0 when you fetch?
SkullGamingHQ
SkullGamingHQOP12mo ago
yep
NyR
NyR12mo ago
Hmm! Refreshing your client should work though, can you try re inviting the bot? Then refresh again once you do
SkullGamingHQ
SkullGamingHQOP12mo ago
okay
Mark
Mark12mo ago
show code
SkullGamingHQ
SkullGamingHQOP12mo ago
Gist
Client.ts
Client.ts. GitHub Gist: instantly share code, notes, and snippets.
SkullGamingHQ
SkullGamingHQOP12mo ago
count and fetched still showing as 0 with the commands still showing in discord, guildId: 959693430227894292 is my test servers ID
Mark
Mark12mo ago
and you've manually checked your global commands, outside of your extended client method?
SkullGamingHQ
SkullGamingHQOP12mo ago
just in the else statement for registerCommands which is what handles the global comands for me
Mark
Mark12mo ago
manually check your global commands by eval or something
SkullGamingHQ
SkullGamingHQOP12mo ago
if i run my status command it shows i have 34 commands registered
NyR
NyR12mo ago
It may very well be global commands then if it's working fully Please check global commands as Mark said
SkullGamingHQ
SkullGamingHQOP12mo ago
i figured it out, thank you, i was using the wrong bot token

Did you find this page helpful?