diff options
| author | 2020-03-16 13:23:29 -0400 | |
|---|---|---|
| committer | 2020-03-16 13:24:08 -0400 | |
| commit | 88d2d85ec114eac2b9e3be9b18e075302f73509e (patch) | |
| tree | c3e8f6242ccfd9a499a4a82e9ca8a6eccc120b92 | |
| parent | (Mod Log): Added comment about channel update formatting change. (diff) | |
Update explanation comment so it explains what happens
| -rw-r--r-- | bot/cogs/moderation/modlog.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py index 21eded6e6..5f9bc0c6c 100644 --- a/bot/cogs/moderation/modlog.py +++ b/bot/cogs/moderation/modlog.py @@ -215,8 +215,9 @@ 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. +                # Discord does not treat consecutive backticks ("``") as an empty inline code block, so the markdown +                # formatting is broken when `new` and/or `old` are empty values. "None" is used for these cases so +                # formatting is preserved.                  changes.append(f"**{key.title()}:** `{old or 'None'}` **→** `{new or 'None'}`")              done.append(key) | 
