Get all guild application commands + bulk delete/update commands #3975
Unanswered
Arthurdw
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 1 reply
-
I can see this being extremely scary for large bots, unless it was paginated |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New API endpoints
Intro
Hey, currently there is no endpoint which can fetch all application commands which are located in all of the bot its guilds.
This means that to get all of those commands you'd have to iterate through all of the guilds the bot is in and send a request to the API to get those commands. As this might be fine for small bots, this is not for bigger bots.
Save local?
You might be saying "Oh well, store these locally and/or remove them once you remove the handler". The thing about that is that I'm working on a library, which tries to be as friendly as possible to the discord API as possible and meanwhile also being as friendly to the developer as possible. The way we register commands is by checking if there are any changes with our local registration and the one the API gave us. Yet this is impossible to do API friendly right now. And about storing them locally, could cause conflicts once the user of the library makes changes across machines (Also why store it on the client and on the api? Double trouble :P).
Also an endpoint to bulk update & delete commands (also for guilds) could greatly reduce load on the API.
This suggestion in short:
Beta Was this translation helpful? Give feedback.
All reactions