1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +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 = [ pages = [
( (
hikari.Embed( 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_author(name=f'{match["similarity"]}% Match')
.set_image(match["thumbnail"]) .set_image(match["thumbnail"])