[X] My PR fixes a bug, error, or other issue with the library's codebase.
[X] My PR is for the command module of the JDA-Utilities library.
[ ] My PR creates a new module for the JDA-Utilities library: ______.
Description
Right now, restarting a shard on a sharded bot means that several internals of the CommandClient will get shut down. This PR allows disabling the automatic shutdown on receiving a ShutdownEvent, and adds a public CommandClient#shutdown method for manual shutdown.
Pull Request
Pull Request Checklist
Please follow the following steps before opening this PR.
PRs that do not complete the checklist will be subject to denial for missing information.
Pull Request Information
Check and fill in the blanks for all that apply:
command
module of the JDA-Utilities library.______
.Description
Right now, restarting a shard on a sharded bot means that several internals of the CommandClient will get shut down. This PR allows disabling the automatic shutdown on receiving a ShutdownEvent, and adds a public CommandClient#shutdown method for manual shutdown.