mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
fix of permissions
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user