aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2021-03-11 02:59:13 +0200
committerGravatar Boris Muratov <[email protected]>2021-03-11 02:59:13 +0200
commit0eb8059a0ba6bb6bce464b4b3afb7847aa3bf098 (patch)
tree56dea648ef0bdd80bb07ba47d29afec58953664f
parentAdded an auto-reviewer to the talentpool cog (diff)
Limit new commands to mods+
-rw-r--r--bot/exts/recruitment/talentpool/_cog.py2
1 files changed, 2 insertions, 0 deletions
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)):