use of isEmpty
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-03-05 05:09:48 +01:00
parent 0ad2fca458
commit 484be87551
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -119,7 +119,7 @@ export default {
})
.then((x) => x);
if (!result.tracks[0]) {
if (result.isEmpty()) {
const embed = new EmbedBuilder().setDescription(`❌ | \`${query}\` ${loc.get("c_play4")}.`);
return await interaction.followUp({ embeds: [embed] });
}