diff options
author | 2020-03-09 09:18:17 +0100 | |
---|---|---|
committer | 2020-03-09 09:18:17 +0100 | |
commit | 0d56b0ae08f809fb9efebd5e5d011bf68b5940c7 (patch) | |
tree | b6c2dd466fe37510e917b4982637177eb9fe73d4 | |
parent | Merge pull request #825 from python-discord/token-detection-fix (diff) | |
parent | Merge branch 'master' into bug/mod/792/null-attachments (diff) |
Merge pull request #822 from python-discord/bug/mod/792/null-attachments
ModLog: fix posting null attachments for deleted message logs
-rw-r--r-- | bot/cogs/moderation/modlog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py index 59ae6b587..81d95298d 100644 --- a/bot/cogs/moderation/modlog.py +++ b/bot/cogs/moderation/modlog.py @@ -67,7 +67,7 @@ class ModLog(Cog, name="ModLog"): 'embeds': [embed.to_dict() for embed in message.embeds], 'attachments': attachment, } - for message, attachment in zip_longest(messages, attachments) + for message, attachment in zip_longest(messages, attachments, fillvalue=[]) ] } ) |