mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-23 11:35:39 +00:00
Fix channel perm issues on lock and unlock
This commit is contained in:
parent
b1cb4dba8f
commit
b29dab5e9c
|
@ -33,8 +33,7 @@ class Lockdown:
|
||||||
roles = [config.named_roles["community"],
|
roles = [config.named_roles["community"],
|
||||||
config.named_roles["hacker"]]
|
config.named_roles["hacker"]]
|
||||||
else:
|
else:
|
||||||
roles = [config.named_roles["participant"],
|
roles = [config.named_roles["participant"]]
|
||||||
ctx.guild.default_role.id]
|
|
||||||
|
|
||||||
for role in roles:
|
for role in roles:
|
||||||
await channel.set_permissions(channel.guild.get_role(role),
|
await channel.set_permissions(channel.guild.get_role(role),
|
||||||
|
@ -68,8 +67,7 @@ class Lockdown:
|
||||||
roles = [config.named_roles["community"],
|
roles = [config.named_roles["community"],
|
||||||
config.named_roles["hacker"]]
|
config.named_roles["hacker"]]
|
||||||
else:
|
else:
|
||||||
roles = [config.named_roles["participant"],
|
roles = [config.named_roles["participant"]]
|
||||||
ctx.guild.default_role.id]
|
|
||||||
|
|
||||||
await self.unlock_for_staff(channel, ctx.author)
|
await self.unlock_for_staff(channel, ctx.author)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue