diff options
author | 2020-03-16 18:32:55 +0200 | |
---|---|---|
committer | 2020-03-16 18:32:55 +0200 | |
commit | 8e60f04048cf9272daf2a2e08eab76a69af97bf4 (patch) | |
tree | 19312210ccd412bd67259deab0386cd5301c9da9 | |
parent | (Mod Log): Fixed case when `on_guild_channel_update` old or new value is empt... (diff) |
(Mod Log): Added comment about channel update formatting change.
-rw-r--r-- | bot/cogs/moderation/modlog.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py index 5d7c91ac4..21eded6e6 100644 --- a/bot/cogs/moderation/modlog.py +++ b/bot/cogs/moderation/modlog.py @@ -215,6 +215,8 @@ class ModLog(Cog, name="ModLog"): new = value["new_value"] old = value["old_value"] + # `or` is required here on `old` and `new` due otherwise, when one of them is empty, + # formatting in Discord will break. changes.append(f"**{key.title()}:** `{old or 'None'}` **→** `{new or 'None'}`") done.append(key) |