mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 13:02:38 +00:00
Fix embed color in DMs
This commit is contained in:
parent
61bc5596b1
commit
f1278b5e3f
1 changed files with 3 additions and 1 deletions
|
@ -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"])
|
||||
|
|
Loading…
Reference in a new issue