diff options
| author | 2020-01-16 02:27:53 -0300 | |
|---|---|---|
| committer | 2020-01-16 02:27:53 -0300 | |
| commit | fed863ad6ffb8b199014630c0dd7bb4ea680f074 (patch) | |
| tree | 72a2f8692ce40cd57df8f2c9476851e791823c3e /bot/cogs/alias.py | |
| parent | Move Expiry converter alias to converters.py (diff) | |
| parent | Merge pull request #686 from python-discord/feature/645-voice-event-log (diff) | |
Merge branch 'master' into fetched-user
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/alias.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bot/cogs/alias.py b/bot/cogs/alias.py index 197155456..0b800575f 100644 --- a/bot/cogs/alias.py +++ b/bot/cogs/alias.py @@ -2,7 +2,10 @@ import inspect import logging from discord import Colour, Embed -from discord.ext.commands import Cog, Command, Context, clean_content, command, group +from discord.ext.commands import ( + Cog, Command, Context, Greedy, + clean_content, command, group, +) from bot.bot import Bot from bot.cogs.extensions import Extension @@ -79,7 +82,7 @@ class Alias (Cog): await self.invoke(ctx, "site faq") @command(name="rules", aliases=("rule",), hidden=True) - async def site_rules_alias(self, ctx: Context, *rules: int) -> None: + async def site_rules_alias(self, ctx: Context, rules: Greedy[int], *_: str) -> None: """Alias for invoking <prefix>site rules.""" await self.invoke(ctx, "site rules", *rules) |