better error messages
This commit is contained in:
parent
18638e1087
commit
a9f8b7b967
4 changed files with 6 additions and 6 deletions
|
@ -48,7 +48,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
data = await client.player.lyrics.search(request);
|
data = await client.player.lyrics.search(request);
|
||||||
} catch {
|
} catch {
|
||||||
return await interaction.followUp(loc.get("c_lyrics2") + ` \`${request}\``);
|
return await interaction.followUp(`❌ | ${loc.get("c_lyrics2")} \`${request}\``);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const queue = client.player.queues.get(interaction.guildId ?? "");
|
const queue = client.player.queues.get(interaction.guildId ?? "");
|
||||||
|
@ -58,7 +58,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
data = await client.player.lyrics.search(title);
|
data = await client.player.lyrics.search(title);
|
||||||
} catch {
|
} catch {
|
||||||
return await interaction.followUp(loc.get("c_lyrics2") + ` \`${title}\``);
|
return await interaction.followUp(`❌ | ${loc.get("c_lyrics2")} \`${title}\``);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,6 +114,6 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return await interaction.followUp(loc.get("c_lyrics1"));
|
return await interaction.followUp(`❌ | ${loc.get("c_lyrics1")}`);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -97,6 +97,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return await interaction.reply(loc.get("c_repeat1"));
|
return await interaction.reply(`❌ | ${loc.get("c_repeat1")}`);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,6 +53,6 @@ export default {
|
||||||
return await interaction.reply(msg);
|
return await interaction.reply(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
return await interaction.reply(loc.get("c_skip2"));
|
return await interaction.reply(`❌ | ${loc.get("c_skip2")}`);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!(queue.connection || queue.playing)) {
|
if (!(queue.connection || queue.playing)) {
|
||||||
return interaction.reply(loc.get("c_stop1"));
|
return interaction.reply(`❌ | ${loc.get("c_stop1")}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
queue.destroy();
|
queue.destroy();
|
||||||
|
|
Loading…
Reference in a new issue