mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 11:25:22 +02:00
Fix member hex colors with leading zeros
This commit is contained in:
@ -277,6 +277,8 @@ def get_online_discord_users(guild_id, embed):
|
||||
for role in mem_roles:
|
||||
if role["color"] != 0:
|
||||
member["color"] = '{0:02x}'.format(role["color"]) #int to hex
|
||||
while len(member["color"]) < 6:
|
||||
member["color"] = "0" + member["color"]
|
||||
if role["hoist"]:
|
||||
member["hoist-role"] = {}
|
||||
member["hoist-role"]["name"] = role["name"]
|
||||
|
Reference in New Issue
Block a user