Skip to content

Commit

Permalink
Não incluir botões na embed de mix/recomendações adicionadas.
Browse files Browse the repository at this point in the history
  • Loading branch information
zRitsu committed Oct 5, 2024
1 parent 7217b10 commit 6154071
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,10 @@ def check_song_selection(i: Union[CustomContext, disnake.MessageInteraction]):
if footer_txt:
embed.description += f"\n-# {footer_txt}"

if loadtype == "track":
if mix:
components = []

elif loadtype == "track":
components = [
disnake.ui.Button(emoji="💗", label="Favoritar", custom_id=PlayerControls.embed_add_fav),
disnake.ui.Button(emoji="▶️", label="Tocar" + (" agora" if (player.current and player.current.autoplay) else ""), custom_id=PlayerControls.embed_forceplay),
Expand Down

0 comments on commit 6154071

Please sign in to comment.