diff options
author | 2018-12-05 19:34:26 +0100 | |
---|---|---|
committer | 2018-12-05 19:34:26 +0100 | |
commit | b07d27411c0bf7d188554385e748fb7af27f5cf9 (patch) | |
tree | 9baf65ad1d4fd12a170f9d034857a77aaaf2f514 | |
parent | Add commas to server command (#209) (diff) | |
parent | Update bot/cogs/alias.py (diff) |
Merge pull request #216 from python-discord/watch_alias_fix
!watch alias bugfix
-rw-r--r-- | bot/cogs/alias.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/alias.py b/bot/cogs/alias.py index 12edb202f..2ce4a51e3 100644 --- a/bot/cogs/alias.py +++ b/bot/cogs/alias.py @@ -1,7 +1,7 @@ import inspect import logging -from discord import Colour, Embed, TextChannel, User +from discord import Colour, Embed, User from discord.ext.commands import ( Command, Context, clean_content, command, group ) @@ -71,13 +71,13 @@ class Alias: @command(name="watch", hidden=True) async def bigbrother_watch_alias( - self, ctx, user: User, channel: TextChannel = None + self, ctx, user: User, *, reason: str = None ): """ Alias for invoking <prefix>bigbrother watch user [text_channel]. """ - await self.invoke(ctx, "bigbrother watch", user, channel) + await self.invoke(ctx, "bigbrother watch", user, reason=reason) @command(name="unwatch", hidden=True) async def bigbrother_unwatch_alias(self, ctx, user: User): |