aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-01-16 17:18:48 +0100
committerGravatar Matteo Bertucci <[email protected]>2021-01-16 17:19:41 +0100
commitdd0d14c000a099c80f9a79e7bd9b2240edd240db (patch)
treefec5bd414ce363dee2e0eeb0e197cbef25f47c52
parentUpdate discord.py to the 1.6 release (diff)
Remove unwatch reason from the !nominate output
As the watch reason can contain private information, we shouldn't share it with the whole staff.
-rw-r--r--bot/exts/moderation/watchchannels/talentpool.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/moderation/watchchannels/talentpool.py b/bot/exts/moderation/watchchannels/talentpool.py
index df2ce586e..dd3349c3a 100644
--- a/bot/exts/moderation/watchchannels/talentpool.py
+++ b/bot/exts/moderation/watchchannels/talentpool.py
@@ -122,8 +122,7 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"):
if history:
total = f"({len(history)} previous nominations in total)"
start_reason = f"Watched: {textwrap.shorten(history[0]['reason'], width=500, placeholder='...')}"
- end_reason = f"Unwatched: {textwrap.shorten(history[0]['end_reason'], width=500, placeholder='...')}"
- msg += f"\n\nUser's previous watch reasons {total}:```{start_reason}\n\n{end_reason}```"
+ msg += f"\n\nUser's previous watch reasons {total}:```{start_reason}```"
await ctx.send(msg)