diff options
| author | 2021-09-01 12:49:50 +0100 | |
|---|---|---|
| committer | 2021-09-01 12:49:50 +0100 | |
| commit | a4351738cc074f42b60521c122e8712888c50498 (patch) | |
| tree | ded4cb387c825583693816d122ac1848e8d3fdae /bot/exts/utils/extensions.py | |
| parent | Merge pull request #835 from python-discord/discord-2.0 (diff) | |
Start and end codeblocks with newlines to avoid android rendering them inline
Diffstat (limited to 'bot/exts/utils/extensions.py')
| -rw-r--r-- | bot/exts/utils/extensions.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/bot/exts/utils/extensions.py b/bot/exts/utils/extensions.py index a95def4e..2f72a302 100644 --- a/bot/exts/utils/extensions.py +++ b/bot/exts/utils/extensions.py @@ -60,7 +60,7 @@ class Extension(commands.Converter):              names = "\n".join(matches)              raise commands.BadArgument(                  f":x: `{argument}` is an ambiguous extension name. " -                f"Please use one of the following fully-qualified names.```\n{names}```" +                f"Please use one of the following fully-qualified names.```\n{names}\n```"              )          elif matches:              return matches[0] @@ -110,7 +110,7 @@ class Extensions(commands.Cog):          blacklisted = "\n".join(UNLOAD_BLACKLIST & set(extensions))          if blacklisted: -            msg = f":x: The following extension(s) may not be unloaded:```{blacklisted}```" +            msg = f":x: The following extension(s) may not be unloaded:```\n{blacklisted}\n```"          else:              if "*" in extensions or "**" in extensions:                  extensions = set(self.bot.extensions.keys()) - UNLOAD_BLACKLIST @@ -213,7 +213,7 @@ class Extensions(commands.Cog):          if failures:              failures = "\n".join(f"{ext}\n    {err}" for ext, err in failures.items()) -            msg += f"\nFailures:```{failures}```" +            msg += f"\nFailures:```\n{failures}\n```"          log.debug(f"Batch {verb}ed extensions.") @@ -240,7 +240,7 @@ class Extensions(commands.Cog):              log.exception(f"Extension '{ext}' failed to {verb}.")              error_msg = f"{e.__class__.__name__}: {e}" -            msg = f":x: Failed to {verb} extension `{ext}`:\n```{error_msg}```" +            msg = f":x: Failed to {verb} extension `{ext}`:\n```\n{error_msg}\n```"          else:              msg = f":ok_hand: Extension successfully {verb}ed: `{ext}`."              log.debug(msg[10:]) | 
