From 9ad3c448ed309a436f65cbec7fc92e5853663e88 Mon Sep 17 00:00:00 2001 From: Still Hsu <5843208+Still34@users.noreply.github.com> Date: Sat, 7 Dec 2019 22:20:46 +0800 Subject: [PATCH] Fix misleading warning about long-running code --- docs/guides/commands/intro.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guides/commands/intro.md b/docs/guides/commands/intro.md index f8ff1b596..abe7065c1 100644 --- a/docs/guides/commands/intro.md +++ b/docs/guides/commands/intro.md @@ -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.