diff options
| -rw-r--r-- | bot/exts/filters/antimalware.py | 4 | ||||
| -rw-r--r-- | tests/bot/exts/filters/test_antimalware.py | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/bot/exts/filters/antimalware.py b/bot/exts/filters/antimalware.py index f8d303389..89e539e7b 100644 --- a/bot/exts/filters/antimalware.py +++ b/bot/exts/filters/antimalware.py @@ -18,7 +18,7 @@ PY_EMBED_DESCRIPTION = (  TXT_LIKE_FILES = {".txt", ".csv", ".json"}  TXT_EMBED_DESCRIPTION = (      "**Uh-oh!** It looks like your message got zapped by our spam filter. " -    "We currently don't allow `{blocked_extension_str}` attachments, " +    "We currently don't allow `{blocked_extension}` attachments, "      "so here are some tips to help you travel safely: \n\n"      "• If you attempted to send a message longer than 2000 characters, try shortening your message "      "to fit within the character limit or use a pasting service (see below) \n\n" @@ -76,7 +76,7 @@ class AntiMalware(Cog):              # Work around Discord AutoConversion of messages longer than 2000 chars to .txt              cmd_channel = self.bot.get_channel(Channels.bot_commands)              embed.description = TXT_EMBED_DESCRIPTION.format( -                blocked_extension_str=extensions.pop(), +                blocked_extension=extensions.pop(),                  cmd_channel_mention=cmd_channel.mention              )          elif extensions_blocked: diff --git a/tests/bot/exts/filters/test_antimalware.py b/tests/bot/exts/filters/test_antimalware.py index c07bde8d7..06d78de9d 100644 --- a/tests/bot/exts/filters/test_antimalware.py +++ b/tests/bot/exts/filters/test_antimalware.py @@ -131,7 +131,7 @@ class AntiMalwareCogTests(unittest.IsolatedAsyncioTestCase):                      antimalware.TXT_EMBED_DESCRIPTION.format.return_value                  )                  antimalware.TXT_EMBED_DESCRIPTION.format.assert_called_with( -                    blocked_extension_str=disallowed_extension, +                    blocked_extension=disallowed_extension,                      cmd_channel_mention=cmd_channel.mention                  ) | 
