diff options
| author | 2020-10-01 11:26:13 +0200 | |
|---|---|---|
| committer | 2020-10-01 11:26:13 +0200 | |
| commit | fe9f0d6f72c0e5b94667e6b2fb39f07857f51d9b (patch) | |
| tree | afc55f340b5e10efe6088a3da8ccca861c794ba9 | |
| parent | Catch 404 in wait_for_deletion when reacting (diff) | |
| parent | Merge pull request #1200 from python-discord/bug/mod/1182/deleted-msg-null-char (diff) | |
Merge branch 'master' into bug/backend/1181/wait-for-deletion-404
| -rw-r--r-- | bot/exts/moderation/modlog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/modlog.py b/bot/exts/moderation/modlog.py index 41ed46b69..b01de0ee3 100644 --- a/bot/exts/moderation/modlog.py +++ b/bot/exts/moderation/modlog.py @@ -63,7 +63,7 @@ class ModLog(Cog, name="ModLog"): 'id': message.id, 'author': message.author.id, 'channel_id': message.channel.id, - 'content': message.content, + 'content': message.content.replace("\0", ""), # Null chars cause 400. 'embeds': [embed.to_dict() for embed in message.embeds], 'attachments': attachment, } |