mirror of https://gitlab.com/litecord/litecord.git
Fixed lazy channel reloading due to missing .bits. attribute
This commit is contained in:
parent
794fc37033
commit
8b1e3fb06e
|
|
@ -158,7 +158,7 @@ async def _subscribe_users_new_channel(guild_id: int, channel_id: int) -> None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
perms = await get_permissions(state.user_id, channel_id)
|
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)
|
users_to_sub.append(state.user_id)
|
||||||
|
|
||||||
for session_id in app.dispatcher.guild.state[guild_id]:
|
for session_id in app.dispatcher.guild.state[guild_id]:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue