Browse Source

Fix misleading warning about long-running code

pull/1437/head
Still Hsu 5 years ago
parent
commit
47804a6fd9
No known key found for this signature in database GPG Key ID: C176DD7907FF62A7
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      docs/guides/commands/intro.md

+ 4
- 4
docs/guides/commands/intro.md View File

@@ -71,11 +71,11 @@ By now, your module should look like this:

> [!WARNING]
> **Avoid using long-running code** in your modules wherever possible.
> You should **not** be implementing very much logic into your
> modules, instead, outsource to a service for that.
> Long-running code, by default, within a command module
> can cause gateway thread to be blocked; therefore, interrupting
> the bot's connection to Discord.
>
> If you are unfamiliar with Inversion of Control, it is recommended
> to read the MSDN article on [IoC] and [Dependency Injection].
> You may read more about it in @FAQ.Commands.General .

The next step to creating commands is actually creating the commands.



Loading…
Cancel
Save