From f1278b5e3f772155715337995fec3680fe781055 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 22 Feb 2022 17:22:50 -0600 Subject: [PATCH] Fix embed color in DMs --- commands/booru.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/booru.py b/commands/booru.py index ab99252..e96f8a8 100644 --- a/commands/booru.py +++ b/commands/booru.py @@ -100,7 +100,9 @@ async def _reverse(context, urls, *, selector=None): pages = [ ( hikari.Embed( - title=match["artist"], url=match["url"], color=context.get_guild().get_my_member().get_top_role().color + title=match["artist"], + url=match["url"], + color=context.get_guild().get_my_member().get_top_role().color if context.get_guild() else "#1a1a1a", ) .set_author(name=f'{match["similarity"]}% Match') .set_image(match["thumbnail"])