From 0c3f752e5a8b9627c4f749011c671e4a09dececa Mon Sep 17 00:00:00 2001 From: Conatum Date: Mon, 20 Sep 2021 09:57:34 +0300 Subject: [PATCH] fix (rooms): Fix permission issues. --- bot/modules/accountability/TimeSlot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/modules/accountability/TimeSlot.py b/bot/modules/accountability/TimeSlot.py index 8572a5cf..5826b34c 100644 --- a/bot/modules/accountability/TimeSlot.py +++ b/bot/modules/accountability/TimeSlot.py @@ -68,7 +68,8 @@ class TimeSlot: ) _everyone_overwrite = discord.PermissionOverwrite( - view_channel=False + view_channel=False, + connect=False ) def __init__(self, guild, start_time, data=None): @@ -308,7 +309,7 @@ class TimeSlot: """ if self.channel: await self.channel.edit(name="Accountability Study Room") - await self.channel.set_permissions(self.guild.default_role, view_channel=True) + await self.channel.set_permissions(self.guild.default_role, view_channel=True, connect=False) asyncio.create_task(self.dm_reminder(delay=60)) await self.message.edit(embed=self.status_embed)