JDA-Applications / JDA-Utilities

A series of tools and utilities for JDA to assist in bot creation
Apache License 2.0
218 stars 111 forks source link

[Enhancement] Execute commands in a new thread #101

Closed pindab0ter closed 4 years ago

pindab0ter commented 4 years ago

Issue

Issue Checklist

Please follow the following steps before opening this issue.
Issues that do not complete the checklist may be closed without any help.

The issue tracker is reserved for issues, errors, and feature requests related to JDA-Utilities, and not questions and other requests for help.

Issue Information

Check all that apply:

This issue tracker does not assist or handle issues with the JDA library.
For JDA related issues, visit the JDA issue tracker and open an issue there.

Description

Currently every command is executed sequentially. In practice this means that sometimes a user will have to wait for a command to finish running which isn't clear to that user. While running heavy code asynchronously within the execute function is a solution for this, a much better solution would be to simply run every command asynchronously.

jagrosh commented 4 years ago

There's a few reasons why this shouldn't be changed: