From 92327507bd9176e65157dc8fdf0696e2d8b26541 Mon Sep 17 00:00:00 2001 From: SebastiaanZ <33516116+SebastiaanZ@users.noreply.github.com> Date: Sat, 29 Jun 2019 17:21:27 +0200 Subject: Making sure a watch/unwatch reason is required when using the alias as well --- bot/cogs/alias.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/bot/cogs/alias.py b/bot/cogs/alias.py index d892c7b87..f71d5d81f 100644 --- a/bot/cogs/alias.py +++ b/bot/cogs/alias.py @@ -72,9 +72,7 @@ class Alias: await self.invoke(ctx, "site resources") @command(name="watch", hidden=True) - async def bigbrother_watch_alias( - self, ctx, user: Union[Member, User, proxy_user], *, reason: str = None - ): + async def bigbrother_watch_alias(self, ctx, user: Union[Member, User, proxy_user], *, reason: str): """ Alias for invoking bigbrother watch [user] [reason]. """ @@ -82,9 +80,7 @@ class Alias: await self.invoke(ctx, "bigbrother watch", user, reason=reason) @command(name="unwatch", hidden=True) - async def bigbrother_unwatch_alias( - self, ctx, user: Union[User, proxy_user], *, reason: str = None - ): + async def bigbrother_unwatch_alias(self, ctx, user: Union[User, proxy_user], *, reason: str): """ Alias for invoking bigbrother unwatch [user] [reason]. """ @@ -178,9 +174,7 @@ class Alias: await self.invoke(ctx, "docs get", symbol) @command(name="nominate", hidden=True) - async def nomination_add_alias( - self, ctx, user: Union[Member, User, proxy_user], *, reason: str = None - ): + async def nomination_add_alias(self, ctx, user: Union[Member, User, proxy_user], *, reason: str): """ Alias for invoking talentpool add [user] [reason]. """ @@ -188,9 +182,7 @@ class Alias: await self.invoke(ctx, "talentpool add", user, reason=reason) @command(name="unnominate", hidden=True) - async def nomination_end_alias( - self, ctx, user: Union[User, proxy_user], *, reason: str = None - ): + async def nomination_end_alias(self, ctx, user: Union[User, proxy_user], *, reason: str): """ Alias for invoking nomination end [user] [reason]. """ -- cgit v1.2.3