Authenticated users also inherit @everyone role too... fixes channel listing, for good hopefully

This commit is contained in:
Jeremy Zhang 2017-04-08 18:36:18 +00:00
parent d09ede5681
commit b0955c69ac

View File

@ -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']