Clear Command Cache?
Since the other one removed his message... How to clear the cache using Sapphire?
Solution:Jump to solution
You should set add this line to your index file before you log in, which will overwrite all commands each time.
```ts
import { SapphireClient, container, ApplicationCommandRegistries, RegisterBehavior } from '@sapphire/framework';
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);...
6 Replies
Why... Would you want to do that? We only use the cache to know which commands exist. If you clear it then you can't run commands anymore.
Because it’s bugged…
I have to clear it to remove commands the bot registered, but don’t exist…
Solution
You should set add this line to your index file before you log in, which will overwrite all commands each time.
Thanks
This only removes the commands that do not exist, right?
It overwrites all of your commands with the latest data
Okay. Good
Thanks 🙂