aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-01-02 23:28:47 -0800
committerGravatar GitHub <[email protected]>2021-01-02 23:28:47 -0800
commitb336e9721e6fb77a66536176e33587b8f9e09111 (patch)
tree192c540207b4b3520bda58d2bae5fb0aba3f2dd4
parentNo nominaton reason blank replaced by italic None (diff)
Set reason to default as an empty string.
Co-authored-by: Dennis Pham <[email protected]>
-rw-r--r--bot/exts/moderation/watchchannels/_watchchannel.py5
-rw-r--r--bot/exts/moderation/watchchannels/talentpool.py2
2 files changed, 2 insertions, 5 deletions
diff --git a/bot/exts/moderation/watchchannels/_watchchannel.py b/bot/exts/moderation/watchchannels/_watchchannel.py
index d1e976190..f9fc12dc3 100644
--- a/bot/exts/moderation/watchchannels/_watchchannel.py
+++ b/bot/exts/moderation/watchchannels/_watchchannel.py
@@ -285,10 +285,7 @@ class WatchChannel(metaclass=CogABCMeta):
else:
message_jump = f"in [#{msg.channel.name}]({msg.jump_url})"
- # Add reason to the footer if it exists.
- footer = f"Added {time_delta} by {actor}"
- if reason:
- footer += f" | Reason: {reason}"
+ footer = f"Added {time_delta} by {actor} | Reason: {reason}"
embed = Embed(description=f"{msg.author.mention} {message_jump}")
embed.set_footer(text=textwrap.shorten(footer, width=128, placeholder="..."))
diff --git a/bot/exts/moderation/watchchannels/talentpool.py b/bot/exts/moderation/watchchannels/talentpool.py
index fdba6606d..8dd46a951 100644
--- a/bot/exts/moderation/watchchannels/talentpool.py
+++ b/bot/exts/moderation/watchchannels/talentpool.py
@@ -64,7 +64,7 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"):
@nomination_group.command(name='watch', aliases=('w', 'add', 'a'), root_aliases=("nominate",))
@has_any_role(*STAFF_ROLES)
- async def watch_command(self, ctx: Context, user: FetchedMember, *, reason: Optional[str] = '') -> None:
+ async def watch_command(self, ctx: Context, user: FetchedMember, *, reason: str = '') -> None:
"""
Relay messages sent by the given `user` to the `#talent-pool` channel.