Skip to content

Commit

Permalink
fix: remove footer after scrobble
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhermeasper committed Nov 13, 2023
1 parent ac5ec4f commit 2bb9d3f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/utils/lastfm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const musicBotMessageHandler = async (message: Message) => {
.setDescription(getOngoingScrobbleDescription(track, scrobblesOnUsers))
.setThumbnail(track.coverArtUrl)
.setFooter({
text: `Scrobbling em ${millisecondsToFormattedText(
text: `Scrobbling será feito em ${millisecondsToFormattedText(
timeUntilScrobbling
)}`,
})
Expand Down Expand Up @@ -162,6 +162,13 @@ export const musicBotMessageHandler = async (message: Message) => {
addScrobble.setDisabled(true);
cancelScrobble.setDisabled(true);
buttons.setComponents([addScrobble, cancelScrobble]);
scrobbleEmbed.setFooter({
text: '',
});
scrobbleEmbedRef.edit({
embeds: [scrobbleEmbed],
components: [buttons],
});
}, timeUntilScrobbling - tenSecondsInMillis);

setTimeout(() => {
Expand Down

0 comments on commit 2bb9d3f

Please sign in to comment.