mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 15:22:10 +00:00
fix of permissions
This commit is contained in:
@@ -1355,7 +1355,7 @@ async def skip_track(ctx):
|
|||||||
async with ctx.typing():
|
async with ctx.typing():
|
||||||
allowed = False
|
allowed = False
|
||||||
for role in ctx.author.roles:
|
for role in ctx.author.roles:
|
||||||
if role.name == "Thane":
|
if role.name == "Thane" or role.name == "Jarl":
|
||||||
allowed = True
|
allowed = True
|
||||||
if not allowed:
|
if not allowed:
|
||||||
await ctx.send("Łapy precz od radia")
|
await ctx.send("Łapy precz od radia")
|
||||||
@@ -1370,7 +1370,7 @@ async def zrestartuj_radio(ctx):
|
|||||||
async with ctx.typing():
|
async with ctx.typing():
|
||||||
allowed = False
|
allowed = False
|
||||||
for role in ctx.author.roles:
|
for role in ctx.author.roles:
|
||||||
if role.name == "Thane":
|
if role.name == "Thane" or role.name == "Jarl":
|
||||||
allowed = True
|
allowed = True
|
||||||
if not allowed:
|
if not allowed:
|
||||||
await ctx.send("Łapy precz od radia")
|
await ctx.send("Łapy precz od radia")
|
||||||
|
|||||||
Reference in New Issue
Block a user