fix of permissions

This commit is contained in:
2024-06-19 18:22:39 +02:00
parent 575237812f
commit c0b362df6d
+2 -2
View File
@@ -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")