aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-09 11:30:51 +0300
committerGravatar ks129 <[email protected]>2020-04-09 11:30:51 +0300
commit2c9bc9f6fe5174096a6177560acd91f869c296ef (patch)
treeca554ad21b47b0877e5b28b111d34eacd230fe66
parent(Talent Pool): Applied reason shortening. (diff)
(Watchchannel): Added footer shortening.
-rw-r--r--bot/cogs/watchchannels/watchchannel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/watchchannels/watchchannel.py b/bot/cogs/watchchannels/watchchannel.py
index 479820444..ac1aa38ee 100644
--- a/bot/cogs/watchchannels/watchchannel.py
+++ b/bot/cogs/watchchannels/watchchannel.py
@@ -280,8 +280,9 @@ class WatchChannel(metaclass=CogABCMeta):
else:
message_jump = f"in [#{msg.channel.name}]({msg.jump_url})"
+ footer = f"Added {time_delta} by {actor} | Reason: {reason}"
embed = Embed(description=f"{msg.author.mention} {message_jump}")
- embed.set_footer(text=f"Added {time_delta} by {actor} | Reason: {reason}")
+ embed.set_footer(text=textwrap.shorten(footer, width=128, placeholder="..."))
await self.webhook_send(embed=embed, username=msg.author.display_name, avatar_url=msg.author.avatar_url)