Bot does not update commands
so i deleted my ping.ts with was generated from the cli and i restarted the bot and it is still having the commands and i waited more then a day
Solution:Jump to solution
is it somehow still in your dist folder? the logging makes it seem like the piece is being loaded.
18 Replies
That won’t delete it from the command registry unless you use bulk overwrite. You can remove it manually or use the overwrite behavior for all commands.
Sapphire Framework
Configuring the global behavior when commands are not identical | S...
Configuring the global behavior is easy! You just need to import the
Sapphire Framework
Registering Chat Input Commands | Sapphire
To register a Chat Input Command (also known as a Slash Command) with Discord, you need to acquire an application
where do i need to put it?
my setup.ts have it already
I guess hard to say without the code I use it exactly as the docs say and it does work for me
wait
mine looks like this:
GitHub
GitHub - Blazecord/blaze: Blaze: The Guardian of Moderation!
Blaze: The Guardian of Moderation! Contribute to Blazecord/blaze development by creating an account on GitHub.
ye but was like this
but it doesnt work
The only thing I do differently than yours is I extended the Sapphire Client into a custom class. Here's my full code. I used Dragonite as guide for this if I remember correctly because Favna points to it a lot.
Just noticed your's says overwrite and not bulk overwrite
ye but why do my commands not update
ye i changed it jus to test
none of these work for me
ok then I guess I cannot be much help. Hopefully someone else can, I just know this implementation definitely works for me.
this is the console
and when i change the NODE_ENV = to 'production' it wont change anything
Solution
is it somehow still in your dist folder? the logging makes it seem like the piece is being loaded.
TS doesn't remove them on delete
hmm
ima check
OMG IT WORKED
thank you
now the other commands wont load
thank you
no prob