Skip to content

Commit

Permalink
Add Committee check to increment-year-channel command (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattyTheHacker authored Nov 17, 2024
1 parent 48ebd95 commit b1347e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cogs/annual_handover_and_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ class AnnualYearChannelsIncrementCommandCog(TeXBotBaseCog):
name="increment-year-channels",
description="Increments the year channels, archiving and creating channels as needed.",
)
@CommandChecks.check_interaction_user_has_committee_role
@CommandChecks.check_interaction_user_in_main_guild
async def increment_year_channels(self, ctx: TeXBotApplicationContext) -> None:
"""
Definition and callback response of the "increment_year_channels" command.
Expand Down

0 comments on commit b1347e3

Please sign in to comment.