diff options
| author | 2019-10-25 08:51:25 -0400 | |
|---|---|---|
| committer | 2019-10-25 08:51:25 -0400 | |
| commit | 2b1c18e52c9072f3e8f04984a7a8900537a1e193 (patch) | |
| tree | 6e9e45e62b6423fc1c440eafded277dd32f53abf /bot/cogs/alias.py | |
| parent | Fix incorrect type hint for return value (diff) | |
| parent | Prepend emoji indicative of success of !eval (#552) (diff) | |
Merge branch 'master' into show-trigger-word
Diffstat (limited to '')
| -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 6648805e9..5190c559b 100644 --- a/bot/cogs/alias.py +++ b/bot/cogs/alias.py @@ -79,10 +79,10 @@ class Alias (Cog): """Alias for invoking <prefix>site faq.""" await self.invoke(ctx, "site faq") - @command(name="rules", hidden=True) - async def site_rules_alias(self, ctx: Context) -> None: + @command(name="rules", aliases=("rule",), hidden=True) + async def site_rules_alias(self, ctx: Context, *rules: int) -> None: """Alias for invoking <prefix>site rules.""" - await self.invoke(ctx, "site rules") + await self.invoke(ctx, "site rules", *rules) @command(name="reload", hidden=True) async def extensions_reload_alias(self, ctx: Context, *extensions: Extension) -> None: |