From c0b362df6d65deca9de17dd9cb677c23cf0fe5c1 Mon Sep 17 00:00:00 2001 From: Migatu Date: Wed, 19 Jun 2024 18:22:39 +0200 Subject: [PATCH] fix of permissions --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index bcfeb01..00a1630 100644 --- a/bot.py +++ b/bot.py @@ -1355,7 +1355,7 @@ async def skip_track(ctx): async with ctx.typing(): allowed = False for role in ctx.author.roles: - if role.name == "Thane": + if role.name == "Thane" or role.name == "Jarl": allowed = True if not allowed: await ctx.send("Łapy precz od radia") @@ -1370,7 +1370,7 @@ async def zrestartuj_radio(ctx): async with ctx.typing(): allowed = False for role in ctx.author.roles: - if role.name == "Thane": + if role.name == "Thane" or role.name == "Jarl": allowed = True if not allowed: await ctx.send("Łapy precz od radia")