diff options
| author | 2019-06-29 17:21:27 +0200 | |
|---|---|---|
| committer | 2019-06-29 17:21:27 +0200 | |
| commit | 92327507bd9176e65157dc8fdf0696e2d8b26541 (patch) | |
| tree | 4e1f43d3e1275e698ca3be209efea74182e73437 | |
| parent | Changing 'return await ctx.send' to return on next line for correct return va... (diff) | |
Making sure a watch/unwatch reason is required when using the alias as well
| -rw-r--r-- | bot/cogs/alias.py | 16 |
1 files 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 <prefix>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 <prefix>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 <prefix>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 <prefix>nomination end [user] [reason]. """ |