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
utils.py:sync_commands instantiates all Command objects via load_command_class. I say this is harmful, a user (my case) might do expensive operations in given commands __init__, the loaded class is not used except for its help which can be obtained without instantiation.
What do you think?
The text was updated successfully, but these errors were encountered:
utils.py:sync_commands
instantiates allCommand
objects viaload_command_class
. I say this is harmful, a user (my case) might do expensive operations in given commands__init__
, the loaded class is not used except for itshelp
which can be obtained without instantiation.What do you think?
The text was updated successfully, but these errors were encountered: