diff options
author | 2022-12-04 12:08:49 -0500 | |
---|---|---|
committer | 2022-12-04 12:08:49 -0500 | |
commit | 3e17a97d4709987616505ba74eec270556d8e3ee (patch) | |
tree | fccb15161a95f93720277cd176e4a97b874b8026 | |
parent | Merge pull request #2350 from python-discord/return-jif-rename (diff) | |
parent | Fix help channels with no content not opening properly (diff) |
Merge pull request #2356 from python-discord/fix-help-channel-open-with-no-content
-rw-r--r-- | bot/exts/help_channels/_channel.py | 2 |
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." |