aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Den4200 <[email protected]>2020-10-03 20:41:17 -0400
committerGravatar Den4200 <[email protected]>2020-10-03 21:09:04 -0400
commit6cc110cf93dd109e371dfae7ad93520920883ca8 (patch)
treed70385412fcc664fd5af19394f9b1f38afe8d2e5
parentRemove duplicates from given rule indices and sort them in order. (diff)
Use `Greedy` converter instead of the splat operator.
-rw-r--r--bot/exts/info/site.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/site.py b/bot/exts/info/site.py
index c8ae8dc96..12c1737a2 100644
--- a/bot/exts/info/site.py
+++ b/bot/exts/info/site.py
@@ -1,7 +1,7 @@
import logging
from discord import Colour, Embed
-from discord.ext.commands import Cog, Context, group
+from discord.ext.commands import Cog, Context, Greedy, group
from bot.bot import Bot
from bot.constants import URLs
@@ -105,7 +105,7 @@ class Site(Cog):
await ctx.send(embed=embed)
@site_group.command(name="rules", aliases=("r", "rule"), root_aliases=("rules", "rule"))
- async def site_rules(self, ctx: Context, *rules: int) -> None:
+ async def site_rules(self, ctx: Context, rules: Greedy[int]) -> None:
"""Provides a link to all rules or, if specified, displays specific rule(s)."""
rules_embed = Embed(title='Rules', color=Colour.blurple())
rules_embed.url = f"{PAGES_URL}/rules"