From fc06b312cd521d3633a88e40c3c86340d365cdf4 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Thu, 23 Jan 2025 19:24:50 -0500 Subject: [PATCH] fix(commands/tools/lookup): get accent color properly --- commands/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/tools.py b/commands/tools.py index 89b40fc..11aba19 100644 --- a/commands/tools.py +++ b/commands/tools.py @@ -120,9 +120,9 @@ async def lookup(message): except Exception: raise Exception(f"unable to find badge: {PUBLIC_FLAGS[flag]}") - accent_color = 0x000000 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 embed = disnake.Embed(color=accent_color)