1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 06:27:27 +00:00

Fix embed color in DMs

This commit is contained in:
Myned 2022-02-22 17:22:50 -06:00
parent 61bc5596b1
commit f1278b5e3f
No known key found for this signature in database
GPG key ID: 33790F979F7A28B8

View file

@ -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"])