mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Authenticated users also inherit @everyone role too... fixes channel listing, for good hopefully
This commit is contained in:
parent
d09ede5681
commit
b0955c69ac
@ -111,6 +111,8 @@ def get_guild_channels(guild_id):
|
||||
else:
|
||||
member = discord_api.get_guild_member(guild_id, session['user_id'])['content']
|
||||
member_roles = member['roles']
|
||||
if guild_id not in member_roles:
|
||||
member_roles.append(guild_id)
|
||||
guild_channels = discord_api.get_guild_channels(guild_id)['content']
|
||||
guild_roles = discord_api.get_guild_roles(guild_id)["content"]
|
||||
guild_owner = discord_api.get_guild(guild_id)['content']['owner_id']
|
||||
|
Loading…
Reference in New Issue
Block a user