Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove previously registered commands #19

Open
adevries17 opened this issue Feb 28, 2024 · 1 comment
Open

Remove previously registered commands #19

adevries17 opened this issue Feb 28, 2024 · 1 comment

Comments

@adevries17
Copy link

First I would like to say that the work done on this framework is wonderful, documentation is done well and I want to thank everyone involved so far on getting it where it is.

Next, I have a question regarding how to remove already registered commands. Looking through the existing documentation and code, I'm not seeing a way to remove previously registered commands outside of using the bulk edit command endpoint to overwrite all commands.

For example, I create a command using the framework, run the bot which registers that command without issue. If I make an adjustment to that command, rename it, or remove it, in discord it still shows up as previously registered.

I'm currently registering commands using the framework.register_guild_commands method. Is there a similar framework.remove_guild_commands method that I'm not finding, or does this functionality exist?

If it doesn't exist already, I will move forward with using the bulk update method specified at the end of the README.

Thank you in advance.

@AlvaroMS25
Copy link
Owner

Thanks! At the moment there's no way to remove commands from within the framework 😞 I'll look into writing some methods to do so in the next version.

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

No branches or pull requests

2 participants