Skip to content

Commit

Permalink
♻️ refactor(player.py): Replaced current artwork URL with bot user av…
Browse files Browse the repository at this point in the history
…atar for thumbnail
  • Loading branch information
Nat1anWasTaken committed Apr 27, 2024
1 parent 3698eb7 commit f1bad74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lava/classes/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,6 @@ def __generate_display_embed(self) -> Embed:
inline=True
)

embed.set_thumbnail(url=self.current.artwork_url)

embed.set_footer(
text=self.bot.get_text(
"display.footer", self.locale, "如果你覺得音樂怪怪的,可以試著檢查看看效果器設定或是切換語音頻道地區"
Expand All @@ -297,6 +295,9 @@ def __generate_display_embed(self) -> Embed:
if self.current.artwork_url:
embed.set_image(url=self.current.artwork_url)

if self.bot.user.avatar:
embed.set_thumbnail(self.bot.user.avatar)

else:
embed.title = self.bot.get_text("error.nothing_playing", self.locale, "沒有正在播放的音樂")

Expand Down

0 comments on commit f1bad74

Please sign in to comment.