Skip to content

Commit 5c94dd5

Browse files
authored
Update lyric.js
1 parent adea428 commit 5c94dd5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/commands/interaction/music/lyric.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ module.exports = {
3131
const trackArtist = formatText(track.author);
3232
const lyricText = await lyricFind(client, trackTitle, trackArtist);
3333
const loadingEmbed = new EmbedBuilder().setColor(client.config.embedColor).setDescription(`Please wait...!`);
34-
const ladingMsg = await interaction.reply({ embeds: [loadingEmbed] });
34+
const loadingMsg = await interaction.reply({ embeds: [loadingEmbed] });
3535

3636
if (!lyricText) {
3737
embed.setDescription(`No lyrics found. Please try again later.`);
3838

39-
if (ladingMsg) {
40-
return ladingMsg.edit({ embeds: [embed] });
39+
if (loadingMsg) {
40+
return loadingMsg.edit({ embeds: [embed] });
4141
} else {
4242
return interaction.reply({ embeds: [embed] });
4343
}
@@ -52,8 +52,8 @@ module.exports = {
5252
.setThumbnail(track.artworkUrl)
5353
.setDescription(lyricText);
5454

55-
if (ladingMsg) {
56-
return ladingMsg.edit({ embeds: [embed] });
55+
if (loadingMsg) {
56+
return loadingMsg.edit({ embeds: [embed] });
5757
} else {
5858
return interaction.reply({ embeds: [embed] });
5959
}
@@ -71,8 +71,8 @@ module.exports = {
7171
new ButtonBuilder().setURL(lyricUrl.replace("http:", "https:")).setLabel("Full Lyrics").setStyle(ButtonStyle.Link),
7272
);
7373

74-
if (ladingMsg) {
75-
return ladingMsg.edit({ embeds: [embed], components: [lyricButton] });
74+
if (loadingMsg) {
75+
return loadingMsg.edit({ embeds: [embed], components: [lyricButton] });
7676
} else {
7777
return interaction.editReply({ embeds: [embed], components: [lyricButton] });
7878
}

0 commit comments

Comments
 (0)