Skip to content

Commit

Permalink
Merge pull request #75 from Pho3nix-Jacki3/update-perms-pho3nix
Browse files Browse the repository at this point in the history
Update moderation.py
  • Loading branch information
MEhrn00 authored Dec 31, 2023
2 parents 85baef1 + 6062647 commit e956b93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions JHDBot/cogs/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def unmute(self, ctx, user: discord.Member):
usage="[user mention or id] [reason]",
)
@commands.has_permissions(kick_members=True)
@commands.has_any_role("Admin", "Moderator")
@commands.has_any_role("Admin", "Moderator", "Trial Moderator")
async def kick(self, ctx, user: discord.Member, *, reason=None):
if user.guild_permissions.manage_messages:
# check perms. if user has perms to manage message like if he mod he can't be banned by the bot.
Expand Down Expand Up @@ -257,7 +257,7 @@ async def multiban(self, ctx, *, users): # gets user id in string.
name="addgif", help="Adds a ban/kick gif", usage="[kick/ban] [url to gif]"
)
@commands.has_permissions(kick_members=True)
@commands.has_any_role("Admin", "Moderator")
@commands.has_any_role("Admin", "Moderator", "Trial Moderator")
async def addgif(self, ctx, option, *, url: str = None):
if url is None:
await ctx.send(
Expand Down Expand Up @@ -303,7 +303,7 @@ async def addgif(self, ctx, option, *, url: str = None):
usage="[kick/ban] [url to gif]",
)
@commands.has_permissions(kick_members=True)
@commands.has_any_role("Admin", "Moderator")
@commands.has_any_role("Admin", "Moderator", "Trial Moderator")
async def removegif(self, ctx, option, *, url: str = None):
if url is None:
await ctx.send(
Expand Down Expand Up @@ -351,7 +351,7 @@ async def removegif(self, ctx, option, *, url: str = None):
usage="[kick/ban]",
)
@commands.has_permissions(kick_members=True)
@commands.has_any_role("Admin", "Moderator")
@commands.has_any_role("Admin", "Moderator", "Trial Moderator")
async def listgifs(self, ctx, option):
filename = ""
if option.lower() == "kick":
Expand Down

0 comments on commit e956b93

Please sign in to comment.