From b0955c69acb89db6391c6bc8f6b97965c886e195 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sat, 8 Apr 2017 18:36:18 +0000 Subject: [PATCH] Authenticated users also inherit @everyone role too... fixes channel listing, for good hopefully --- titanembeds/blueprints/api/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/titanembeds/blueprints/api/api.py b/titanembeds/blueprints/api/api.py index 89bafa0..9b394cb 100644 --- a/titanembeds/blueprints/api/api.py +++ b/titanembeds/blueprints/api/api.py @@ -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']