aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2022-12-08 19:14:14 +0000
committerGravatar GitHub <[email protected]>2022-12-08 19:14:14 +0000
commit186fd1e38a1111b4bbe3a72963d012503325b17b (patch)
treee8edafdd2cd16b503a0b69d714d2ec4aaa28c392
parentDon't count bot messages as an answer in a thread (diff)
parentMerge pull request #2356 from python-discord/fix-help-channel-open-with-no-co... (diff)
Merge branch 'main' into maybe-fix-help-stats-bug
-rw-r--r--bot/exts/help_channels/_channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_channel.py b/bot/exts/help_channels/_channel.py
index 5c47a3559..fad2a32a9 100644
--- a/bot/exts/help_channels/_channel.py
+++ b/bot/exts/help_channels/_channel.py
@@ -94,7 +94,7 @@ async def send_opened_post_dm(post: discord.Thread) -> None:
return
formatted_message = textwrap.shorten(message.content, width=100, placeholder="...").strip()
- if formatted_message is None:
+ if not formatted_message:
# This most likely means the initial message is only an image or similar
formatted_message = "No text content."