diff options
| author | 2020-01-12 17:08:09 +0100 | |
|---|---|---|
| committer | 2020-01-12 17:08:09 +0100 | |
| commit | 05a8510845fbe75e358a9242ba8c1bc9abb61fd1 (patch) | |
| tree | 069acdb67c8337ac32ac96b7e9597ec51a4eaa40 | |
| parent | Merge pull request #722 from python-discord/setup-prometheus-endpoint (diff) | |
| parent | fix(lint): wrong import order (diff) | |
Merge pull request #723 from python-discord/tagptroll1-rules-optional-args
Allow for throw away words after the rules command call
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 c1db38462..d05a6a715 100644 --- a/bot/cogs/alias.py +++ b/bot/cogs/alias.py @@ -3,7 +3,10 @@ import logging  from typing import Union  from discord import Colour, Embed, Member, User -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 @@ -81,7 +84,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) | 
