Pull request #1: Fixed lazy channel reloading due to missing .bits. attribute

Merge in LIT/litecord from bugfix/channel-creation-reload to master

* commit '8b1e3fb06e181281dfe7997ec7d1ed4f6e0764e1':
  Fixed lazy channel reloading due to missing .bits. attribute
This commit is contained in:
George Tsatsis 2020-03-30 15:10:10 +00:00
commit 3023404d42
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ async def _subscribe_users_new_channel(guild_id: int, channel_id: int) -> None:
continue
perms = await get_permissions(state.user_id, channel_id)
if perms.read_messages:
if perms.bits.read_messages:
users_to_sub.append(state.user_id)
for session_id in app.dispatcher.guild.state[guild_id]: