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
Describe the bug
Right now, only the execution of the command itself is async.
However, loading the user settings, which is the longest part as it involves I/O, is happening in the ws thread. This could lead to discord timeouts in the future.
Expected behavior
The whole code in onCommandInteraction should be sent to the thread pool, not only the execution of the command itself.
The text was updated successfully, but these errors were encountered:
Describe the bug
Right now, only the execution of the command itself is async.
However, loading the user settings, which is the longest part as it involves I/O, is happening in the ws thread. This could lead to discord timeouts in the future.
Expected behavior
The whole code in
onCommandInteraction
should be sent to the thread pool, not only the execution of the command itself.The text was updated successfully, but these errors were encountered: