Open deadaf opened 1 year ago
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.