aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Eivind Teig <[email protected]>2020-09-12 01:28:39 +0200
committerGravatar Eivind Teig <[email protected]>2020-09-12 01:28:39 +0200
commit7b83b7c67b0d00fce0c7c88b9b306e82ca2f5622 (patch)
tree6831e12b215ba705f7b3d1c2582b60f36e414c85
parentVerification: update & improve docstrings (diff)
Make nomination reason optional.
We want to make the nominate command more attractive for our members of staff.
-rw-r--r--bot/cogs/watchchannels/talentpool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/watchchannels/talentpool.py b/bot/cogs/watchchannels/talentpool.py
index 76d6fe9bd..6ba397308 100644
--- a/bot/cogs/watchchannels/talentpool.py
+++ b/bot/cogs/watchchannels/talentpool.py
@@ -1,7 +1,7 @@
import logging
import textwrap
from collections import ChainMap
-from typing import Union
+from typing import Union, Optional
from discord import Color, Embed, Member, User
from discord.ext.commands import Cog, Context, group
@@ -65,7 +65,7 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"):
@nomination_group.command(name='watch', aliases=('w', 'add', 'a'), root_aliases=("nominate",))
@with_role(*STAFF_ROLES)
- async def watch_command(self, ctx: Context, user: FetchedMember, *, reason: str) -> None:
+ async def watch_command(self, ctx: Context, user: FetchedMember, *, reason: Optional[str] = '') -> None:
"""
Relay messages sent by the given `user` to the `#talent-pool` channel.