From 0eb8059a0ba6bb6bce464b4b3afb7847aa3bf098 Mon Sep 17 00:00:00 2001 From: Boris Muratov <8bee278@gmail.com> Date: Thu, 11 Mar 2021 02:59:13 +0200 Subject: Limit new commands to mods+ --- bot/exts/recruitment/talentpool/_cog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/exts/recruitment/talentpool/_cog.py b/bot/exts/recruitment/talentpool/_cog.py index 60f5cdf8c..070a4fd83 100644 --- a/bot/exts/recruitment/talentpool/_cog.py +++ b/bot/exts/recruitment/talentpool/_cog.py @@ -296,6 +296,7 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"): await ctx.send(":white_check_mark: Updated the end reason of the nomination!") @nomination_group.command(aliases=('mr',)) + @has_any_role(*MODERATION_ROLES) async def mark_reviewed(self, ctx: Context, nomination_id: int) -> None: """Mark a nomination as reviewed and cancel the review task.""" if not await self.reviewer.mark_reviewed(ctx, nomination_id): @@ -303,6 +304,7 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"): await ctx.channel.send(f"✅ The nomination with ID `{nomination_id}` was marked as reviewed.") @nomination_group.command(aliases=('review',)) + @has_any_role(*MODERATION_ROLES) async def post_review(self, ctx: Context, nomination_id: int) -> None: """Post the automatic review for the user ahead of time.""" if not (user_id := await self.reviewer.mark_reviewed(ctx, nomination_id)): -- cgit v1.2.3