Skip to content

Commit

Permalink
add permissions to give_mmr
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Dec 21, 2024
1 parent e484486 commit 3e5de7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cogs/mogi/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from models.CustomMogiContext import MogiApplicationContext

from utils.data.database import db_players
from utils.command_helpers.checks import is_mogi_open
from utils.command_helpers.checks import is_mogi_open, is_moderator

event = SlashCommandGroup(name="event", description="Event commands")

Expand All @@ -18,6 +18,7 @@ def __init__(self, bot: commands.Bot) -> None:
@event.command(
name="give_mmr", description="Give MMR to all players in the current mogi"
)
@is_moderator()
@is_mogi_open()
async def give_mmr(
self,
Expand Down

0 comments on commit 3e5de7f

Please sign in to comment.