aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-06-27 16:23:34 -0700
committerGravatar MarkKoz <[email protected]>2020-06-27 16:23:34 -0700
commit621043a7ebc7574455394959a690913064100101 (patch)
treec881b406c34fd083c73f500ceefc2814c7634e0e
parentCode block: simplify channel cooldown dict creation (diff)
Code block: clarify get_instructions's docstring
It wasn't clear that it also parses the message content.
-rw-r--r--bot/cogs/codeblock/instructions.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/cogs/codeblock/instructions.py b/bot/cogs/codeblock/instructions.py
index 4ea5ca094..c25b2af5d 100644
--- a/bot/cogs/codeblock/instructions.py
+++ b/bot/cogs/codeblock/instructions.py
@@ -147,7 +147,11 @@ def _get_no_lang_message(content: str) -> Optional[str]:
def get_instructions(content: str) -> Optional[str]:
- """Return code block formatting instructions for `content` or None if nothing's wrong."""
+ """
+ Parse `content` and return code block formatting instructions if something is wrong.
+
+ Return None if `content` lacks code block formatting issues.
+ """
log.trace("Getting formatting instructions.")
blocks = parsing.find_code_blocks(content)