mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Set user id to be string in member specific channel overwrite
This commit is contained in:
parent
1d085d328b
commit
19a44cb77b
@ -268,7 +268,7 @@ def get_channel_permission(channel, guild_id, guild_owner, guild_roles, member_r
|
|||||||
|
|
||||||
# member specific
|
# member specific
|
||||||
for overwrite in channel["permission_overwrites"]:
|
for overwrite in channel["permission_overwrites"]:
|
||||||
if overwrite["type"] == "member" and overwrite["id"] == session.get("user_id"):
|
if overwrite["type"] == "member" and overwrite["id"] == str(session.get("user_id")):
|
||||||
channel_perm = (channel_perm & ~overwrite['deny']) | overwrite['allow']
|
channel_perm = (channel_perm & ~overwrite['deny']) | overwrite['allow']
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user