Skip to content

Commit

Permalink
Allow helpers to move messages and turn messages into #help posts
Browse files Browse the repository at this point in the history
  • Loading branch information
00-kat committed Dec 29, 2024
1 parent 19f6411 commit d7ebbdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/features/move_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from app import view
from app.setup import bot
from app.utils import SERVER_ONLY, is_dm, is_mod
from app.utils import SERVER_ONLY, is_dm, is_helper, is_mod
from app.view import HelpPostTitle


Expand All @@ -18,7 +18,7 @@ async def move_message(
"""
assert not is_dm(interaction.user)

if not is_mod(interaction.user):
if not (is_mod(interaction.user) or is_helper(interaction.user)):
await interaction.response.send_message(
"You do not have permission to move messages.", ephemeral=True
)
Expand All @@ -43,7 +43,7 @@ async def turn_into_help_post(
"""
assert not is_dm(interaction.user)

if not is_mod(interaction.user):
if not (is_mod(interaction.user) or is_helper(interaction.user)):
await interaction.response.send_message(
"You do not have permission to use this action.", ephemeral=True
)
Expand Down

0 comments on commit d7ebbdc

Please sign in to comment.