From 484be875511df64b351aa23015208d56d3f7c9ce Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 5 Mar 2023 05:09:48 +0100 Subject: [PATCH] use of isEmpty --- src/commands/music/play.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/music/play.ts b/src/commands/music/play.ts index 8705aeb..3f54775 100644 --- a/src/commands/music/play.ts +++ b/src/commands/music/play.ts @@ -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] }); }