Best way to delete certain guild commands.
I have this idea to use "modules" in my bot that you can enable and disable via a command or future dashboard. The way it works is by adding guild commands when enable a module and removing them when you disable it. However since I am working with multiple commands I do not know the best way to remove the commands. If anyone can help I would greatly appreciate it!
7 Replies
- 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!This really should be a job for the server admins, restricting permissions to use commands
Deploying the same commands to all guilds individually is generally not a good idea
The bot can technically do it, on an admin's behalf using a bearer token (oauth)
You can easily get rate limited registering commands to each guild separately
I think best way you can do is ask admin to remove perms / hide in guild manually, and while running you run a check if the module is enabled or not
nono I don't want add commands individually to each server
I want to have modules
and those modules can be enabled and disabled
with what you described, you would have to
so its better to do something with perms?
Yes