diff options
| author | 2021-12-03 02:43:27 +0400 | |
|---|---|---|
| committer | 2021-12-03 02:43:27 +0400 | |
| commit | 1aa034d8f27ef786d88f525e3e178ef5c88acc2d (patch) | |
| tree | a947ca67db48e8c2f83397d4c6a77484b5486a94 /bot/exts/events | |
| parent | Note why .aoc lb strips quotes from names (diff) | |
| parent | Merge pull request #900 from python-discord/update-role-constants (diff) | |
Merge branch 'main' into aoc-lb-multiword
Diffstat (limited to 'bot/exts/events')
| -rw-r--r-- | bot/exts/events/advent_of_code/_cog.py | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/bot/exts/events/advent_of_code/_cog.py b/bot/exts/events/advent_of_code/_cog.py index 3f9f5787..3ad24b3b 100644 --- a/bot/exts/events/advent_of_code/_cog.py +++ b/bot/exts/events/advent_of_code/_cog.py @@ -55,6 +55,7 @@ class AdventOfCode(commands.Cog):          if not ctx.invoked_subcommand:              await invoke_help_command(ctx) +    @commands.guild_only()      @adventofcode_group.command(          name="subscribe",          aliases=("sub", "notifications", "notify", "notifs"), @@ -84,6 +85,7 @@ class AdventOfCode(commands.Cog):              )      @in_month(Month.DECEMBER) +    @commands.guild_only()      @adventofcode_group.command(name="unsubscribe", aliases=("unsub",), brief="Notifications for new days")      @whitelist_override(channels=AOC_WHITELIST)      async def aoc_unsubscribe(self, ctx: commands.Context) -> None: @@ -127,6 +129,7 @@ class AdventOfCode(commands.Cog):          """Respond with an explanation of all things Advent of Code."""          await ctx.send(embed=self.cached_about_aoc) +    @commands.guild_only()      @adventofcode_group.command(name="join", aliases=("j",), brief="Learn how to join the leaderboard (via DM)")      @whitelist_override(channels=AOC_WHITELIST)      async def join_leaderboard(self, ctx: commands.Context) -> None: @@ -298,7 +301,7 @@ class AdventOfCode(commands.Cog):              info_embed = _helpers.get_summary_embed(leaderboard)              await ctx.send(f"```\n{table}\n```", embed=info_embed) -    @with_role(Roles.admin) +    @with_role(Roles.admins)      @adventofcode_group.command(          name="refresh",          aliases=("fetch",), | 
