Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Command file deleted #9

Open
DumiFlex opened this issue Jun 8, 2023 · 2 comments
Open

Command file deleted #9

DumiFlex opened this issue Jun 8, 2023 · 2 comments

Comments

@DumiFlex
Copy link

DumiFlex commented Jun 8, 2023

When registering the commands, the command handler won't delete a command if the command file was deleted, it will leave the command in the application because it was not marked as deleted, but the entire file was deleted. I think it could be fixed with a check if the ApplicationCommands all exist locally, and if one doesn't it should get deleted.

@its-asht
Copy link

its-asht commented Jun 9, 2023

If your commands are Guild Commands, sometimes discord will cache your commands and will take some time to remove them from the application.
A way around this is to remove the bot form the guild and adding it back as it will reset the cache discord might have of the bot or you can take the bot offline for some time.

I don't believe this is a djs-commander issue as this also happens to be using other languages like Java to build bots.

@sehmee
Copy link

sehmee commented Jun 9, 2023

Another option would be adding the
deleted: true to the command file and restart the bot, after that leave it as is or delete the file and restart again if needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants