aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/alias.py
diff options
context:
space:
mode:
authorGravatar Thomas Petersson <[email protected]>2020-01-12 16:14:05 +0100
committerGravatar Thomas Petersson <[email protected]>2020-01-12 16:14:05 +0100
commitf464f8422a9d33fc09f9a977b011ce362e7e94c3 (patch)
tree64a63116ee8ef8d63ea4acd39930ec827bbc4a00 /bot/cogs/alias.py
parentMerge pull request #705 from python-discord/bug/mod/s317/explicit-active-value (diff)
feat(!rules): allow for throw away words after the command call
Diffstat (limited to '')
-rw-r--r--bot/cogs/alias.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bot/cogs/alias.py b/bot/cogs/alias.py
index c1db38462..2b499a537 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, clean_content,
+ command, Greedy, 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)