Fixed lazy channel reloading due to missing .bits. attribute

This commit is contained in:
Visual 2020-03-30 15:07:48 +00:00
parent 794fc37033
commit 8b1e3fb06e
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]: