fix(commands/tools/lookup): get accent color properly
This commit is contained in:
parent
98f61c623c
commit
fc06b312cd
@ -120,9 +120,9 @@ async def lookup(message):
|
|||||||
except Exception:
|
except Exception:
|
||||||
raise Exception(f"unable to find badge: {PUBLIC_FLAGS[flag]}")
|
raise Exception(f"unable to find badge: {PUBLIC_FLAGS[flag]}")
|
||||||
|
|
||||||
accent_color = 0x000000
|
|
||||||
user_object = await client.fetch_user(user.id)
|
user_object = await client.fetch_user(user.id)
|
||||||
if user_object.accent_color is None:
|
accent_color = 0x000000
|
||||||
|
if user_object.accent_color is not None:
|
||||||
accent_color = user_object.accent_color
|
accent_color = user_object.accent_color
|
||||||
|
|
||||||
embed = disnake.Embed(color=accent_color)
|
embed = disnake.Embed(color=accent_color)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user