aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2021-09-01 12:49:50 +0100
committerGravatar wookie184 <[email protected]>2021-09-01 12:49:50 +0100
commita4351738cc074f42b60521c122e8712888c50498 (patch)
treeded4cb387c825583693816d122ac1848e8d3fdae /bot/exts/evergreen
parentMerge 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/evergreen')
-rw-r--r--bot/exts/evergreen/emoji.py2
-rw-r--r--bot/exts/evergreen/error_handler.py4
-rw-r--r--bot/exts/evergreen/githubinfo.py2
-rw-r--r--bot/exts/evergreen/help.py2
4 files changed, 5 insertions, 5 deletions
diff --git a/bot/exts/evergreen/emoji.py b/bot/exts/evergreen/emoji.py
index 11615214..3d2bf9cb 100644
--- a/bot/exts/evergreen/emoji.py
+++ b/bot/exts/evergreen/emoji.py
@@ -65,7 +65,7 @@ class Emojis(commands.Cog):
emoji_dict[emoji.name.split("_")[0]].append(emoji)
error_comp = ", ".join(emoji_dict)
- msg.append(f"These are the valid emoji categories:\n```{error_comp}```")
+ msg.append(f"These are the valid emoji categories:\n```\n{error_comp}\n```")
return embed, msg
@commands.group(name="emoji", invoke_without_command=True)
diff --git a/bot/exts/evergreen/error_handler.py b/bot/exts/evergreen/error_handler.py
index a280c725..1014f6b2 100644
--- a/bot/exts/evergreen/error_handler.py
+++ b/bot/exts/evergreen/error_handler.py
@@ -74,7 +74,7 @@ class CommandErrorHandler(commands.Cog):
if isinstance(error, commands.UserInputError):
self.revert_cooldown_counter(ctx.command, ctx.message)
- usage = f"```{ctx.prefix}{parent_command}{ctx.command} {ctx.command.signature}```"
+ usage = f"```\n{ctx.prefix}{parent_command}{ctx.command} {ctx.command.signature}\n```"
embed = self.error_embed(
f"Your input was invalid: {error}\n\nUsage:{usage}"
)
@@ -107,7 +107,7 @@ class CommandErrorHandler(commands.Cog):
self.revert_cooldown_counter(ctx.command, ctx.message)
embed = self.error_embed(
"The argument you provided was invalid: "
- f"{error}\n\nUsage:\n```{ctx.prefix}{parent_command}{ctx.command} {ctx.command.signature}```"
+ f"{error}\n\nUsage:\n```\n{ctx.prefix}{parent_command}{ctx.command} {ctx.command.signature}\n```"
)
await ctx.send(embed=embed)
return
diff --git a/bot/exts/evergreen/githubinfo.py b/bot/exts/evergreen/githubinfo.py
index d29f3aa9..bbc9061a 100644
--- a/bot/exts/evergreen/githubinfo.py
+++ b/bot/exts/evergreen/githubinfo.py
@@ -66,7 +66,7 @@ class GithubInfo(commands.Cog):
embed = discord.Embed(
title=f"`{user_data['login']}`'s GitHub profile info",
- description=f"```{user_data['bio']}```\n" if user_data["bio"] else "",
+ description=f"```\n{user_data['bio']}\n```\n" if user_data["bio"] else "",
colour=discord.Colour.blurple(),
url=user_data["html_url"],
timestamp=datetime.strptime(user_data["created_at"], "%Y-%m-%dT%H:%M:%SZ")
diff --git a/bot/exts/evergreen/help.py b/bot/exts/evergreen/help.py
index bfb5db17..0c0922d6 100644
--- a/bot/exts/evergreen/help.py
+++ b/bot/exts/evergreen/help.py
@@ -308,7 +308,7 @@ class HelpSession:
signature = self._get_command_params(self.query)
parent = self.query.full_parent_name + " " if self.query.parent else ""
- paginator.add_line(f"**```{prefix}{parent}{signature}```**")
+ paginator.add_line(f"**```\n{prefix}{parent}{signature}\n```**")
aliases = [f"`{alias}`" if not parent else f"`{parent} {alias}`" for alias in self.query.aliases]
aliases += [f"`{alias}`" for alias in getattr(self.query, "root_aliases", ())]
aliases = ", ".join(sorted(aliases))