@@ -137,13 +137,13 @@ async def nomination_group(self, ctx: Context) -> None:
137
137
await ctx .send_help (ctx .command )
138
138
139
139
@nomination_group .group (name = "autoreview" , aliases = ("ar" ,), invoke_without_command = True )
140
- @has_any_role (* MODERATION_ROLES )
140
+ @has_any_role (* MODERATION_ROLES , Roles . founders )
141
141
async def nomination_autoreview_group (self , ctx : Context ) -> None :
142
142
"""Commands for enabling or disabling autoreview."""
143
143
await ctx .send_help (ctx .command )
144
144
145
145
@nomination_autoreview_group .command (name = "enable" , aliases = ("on" ,))
146
- @has_any_role (Roles .admins )
146
+ @has_any_role (Roles .admins , Roles . founders )
147
147
@commands .max_concurrency (1 )
148
148
async def autoreview_enable (self , ctx : Context ) -> None :
149
149
"""
@@ -167,7 +167,7 @@ async def autoreview_enable(self, ctx: Context) -> None:
167
167
await ctx .send (":white_check_mark: Autoreview enabled." )
168
168
169
169
@nomination_autoreview_group .command (name = "disable" , aliases = ("off" ,))
170
- @has_any_role (Roles .admins )
170
+ @has_any_role (Roles .admins , Roles . founders )
171
171
@commands .max_concurrency (1 )
172
172
async def autoreview_disable (self , ctx : Context ) -> None :
173
173
"""Disable automatic posting of reviews."""
@@ -183,7 +183,7 @@ async def autoreview_disable(self, ctx: Context) -> None:
183
183
await ctx .send (":white_check_mark: Autoreview disabled." )
184
184
185
185
@nomination_autoreview_group .command (name = "status" )
186
- @has_any_role (* MODERATION_ROLES )
186
+ @has_any_role (* MODERATION_ROLES , Roles . founders )
187
187
async def autoreview_status (self , ctx : Context ) -> None :
188
188
"""Show whether automatic posting of reviews is enabled or disabled."""
189
189
if await self .autoreview_enabled ():
@@ -246,7 +246,7 @@ async def prune_talentpool(self) -> None:
246
246
aliases = ("nominated" , "nominees" ),
247
247
invoke_without_command = True
248
248
)
249
- @has_any_role (* MODERATION_ROLES )
249
+ @has_any_role (* MODERATION_ROLES , Roles . founders )
250
250
async def list_group (
251
251
self ,
252
252
ctx : Context ,
@@ -553,7 +553,7 @@ async def _nominate_user(self, ctx: Context, user: MemberOrUser, reason: str) ->
553
553
await self .maybe_relay_update (user .id , thread_update )
554
554
555
555
@nomination_group .command (name = "history" , aliases = ("info" , "search" ))
556
- @has_any_role (* MODERATION_ROLES )
556
+ @has_any_role (* MODERATION_ROLES , Roles . founders )
557
557
async def history_command (self , ctx : Context , user : MemberOrUser ) -> None :
558
558
"""Shows the specified user's nomination history."""
559
559
result = await self .api .get_nominations (user .id , ordering = "-active,-inserted_at" )
@@ -577,7 +577,7 @@ async def history_command(self, ctx: Context, user: MemberOrUser) -> None:
577
577
)
578
578
579
579
@nomination_group .command (name = "end" , aliases = ("unwatch" , "unnominate" ), root_aliases = ("unnominate" ,))
580
- @has_any_role (* MODERATION_ROLES )
580
+ @has_any_role (* MODERATION_ROLES , Roles . founders )
581
581
async def end_nomination_command (self , ctx : Context , user : MemberOrUser , * , reason : str ) -> None :
582
582
"""
583
583
Ends the active nomination of the specified user with the given reason.
@@ -769,7 +769,7 @@ async def _edit_nomination_reason(
769
769
await self .maybe_relay_update (nomination .user_id , thread_update )
770
770
771
771
@nomination_edit_group .command (name = "end_reason" )
772
- @has_any_role (* MODERATION_ROLES )
772
+ @has_any_role (* MODERATION_ROLES , Roles . founders )
773
773
async def edit_end_reason_command (self , ctx : Context , nomination_id : int , * , reason : str ) -> None :
774
774
"""Edits the unnominate reason for the nomination with the given `id`."""
775
775
if len (reason ) > REASON_MAX_CHARS :
@@ -792,7 +792,7 @@ async def edit_end_reason_command(self, ctx: Context, nomination_id: int, *, rea
792
792
await ctx .send (f":white_check_mark: Updated the nomination end reason for <@{ nomination .user_id } >." )
793
793
794
794
@nomination_group .command (aliases = ("gr" ,))
795
- @has_any_role (* MODERATION_ROLES )
795
+ @has_any_role (* MODERATION_ROLES , Roles . founders )
796
796
async def get_review (self , ctx : Context , user_id : int ) -> None :
797
797
"""Get the user's review as a markdown file."""
798
798
nominations = await self .api .get_nominations (user_id , active = True )
@@ -808,7 +808,7 @@ async def get_review(self, ctx: Context, user_id: int) -> None:
808
808
await ctx .send (files = [review_file , nominations_file ])
809
809
810
810
@nomination_group .command (aliases = ("review" ,))
811
- @has_any_role (* MODERATION_ROLES )
811
+ @has_any_role (* MODERATION_ROLES , Roles . founders )
812
812
async def post_review (self , ctx : Context , user_id : int ) -> None :
813
813
"""Post the automatic review for the user ahead of time."""
814
814
nominations = await self .api .get_nominations (user_id , active = True )
0 commit comments