You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With every help command we make an API call to get a list of all slash commands in the bot. A better way to do this might be overriding fetch_commands method to cache the results.
Also, we need to figure out a way to mention sub-commands since parents mention doesn't work & is basically useless.
The text was updated successfully, but these errors were encountered:
monkey patching fetch_commands() is really bad idea, I say we fetch and cache app commands on bot login.
And create arbitrary function something like Quotient.get_app_command() similar to dpy Bot.get_command()
yeah actually that too is a good idea & even less work tbh. I think a method in the Quotient should be a fine approach here.
It will fetch commands for the first time then every time it is called, it will return cached results.
With every
help
command we make an API call to get a list of all slash commands in the bot. A better way to do this might be overridingfetch_commands
method to cache the results.Also, we need to figure out a way to mention sub-commands since parents mention doesn't work & is basically useless.
The text was updated successfully, but these errors were encountered: