mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-04-03 15:41:56 +02: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:
|
else:
|
||||||
member = discord_api.get_guild_member(guild_id, session['user_id'])['content']
|
member = discord_api.get_guild_member(guild_id, session['user_id'])['content']
|
||||||
member_roles = member['roles']
|
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_channels = discord_api.get_guild_channels(guild_id)['content']
|
||||||
guild_roles = discord_api.get_guild_roles(guild_id)["content"]
|
guild_roles = discord_api.get_guild_roles(guild_id)["content"]
|
||||||
guild_owner = discord_api.get_guild(guild_id)['content']['owner_id']
|
guild_owner = discord_api.get_guild(guild_id)['content']['owner_id']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user