aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-08-19 01:25:42 +0100
committerGravatar Chris Lovering <[email protected]>2021-08-19 01:25:42 +0100
commitfe5c6a57222b5d5a6fab974dde41fc42c66f2173 (patch)
treea9f04014d8c82e732eacfd60d6cd3dd458e82d54
parentMerge #1752 - help channels: fix initialisation of available channels set (diff)
Fix linebreak formatting on server command
The features part of the embed isn't included in some channels, this leads to there not being a linebreak between voice regions and roles in the embed. By changing it to this, rather than dedent, we specify exact where we want the linebreaks to be.
Diffstat (limited to '')
-rw-r--r--bot/exts/info/information.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py
index 167731e64..54c03e139 100644
--- a/bot/exts/info/information.py
+++ b/bot/exts/info/information.py
@@ -190,13 +190,13 @@ class Information(Cog):
f"{constants.Emojis.status_offline} {offline_presences}"
)
- embed.description = textwrap.dedent(f"""
- Created: {created}
- Voice region: {region}\
- {features}
- Roles: {num_roles}
- Member status: {member_status}
- """)
+ embed.description = (
+ f"Created: {created}"
+ f"\nVoice region: {region}"
+ f"{features}"
+ f"\nRoles: {num_roles}"
+ f"\nMember status: {member_status}"
+ )
embed.set_thumbnail(url=ctx.guild.icon_url)
# Members