Skip to content

[BUG] command base is partially synchronous #314

@SIMULATAN

Description

@SIMULATAN

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions