From a9f8b7b967dd1ece3db8909491b7781ab36cc104 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 17 Feb 2023 23:01:42 +0100 Subject: [PATCH] better error messages --- src/commands/music/lyrics.ts | 6 +++--- src/commands/music/repeat.ts | 2 +- src/commands/music/skip.ts | 2 +- src/commands/music/stop.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/music/lyrics.ts b/src/commands/music/lyrics.ts index 6a82a34..b0f81da 100644 --- a/src/commands/music/lyrics.ts +++ b/src/commands/music/lyrics.ts @@ -48,7 +48,7 @@ export default { try { data = await client.player.lyrics.search(request); } catch { - return await interaction.followUp(loc.get("c_lyrics2") + ` \`${request}\``); + return await interaction.followUp(`❌ | ${loc.get("c_lyrics2")} \`${request}\``); } } else { const queue = client.player.queues.get(interaction.guildId ?? ""); @@ -58,7 +58,7 @@ export default { try { data = await client.player.lyrics.search(title); } 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 await interaction.followUp(loc.get("c_lyrics1")); + return await interaction.followUp(`❌ | ${loc.get("c_lyrics1")}`); }, }; diff --git a/src/commands/music/repeat.ts b/src/commands/music/repeat.ts index 544d2ac..b330d99 100644 --- a/src/commands/music/repeat.ts +++ b/src/commands/music/repeat.ts @@ -97,6 +97,6 @@ export default { } } - return await interaction.reply(loc.get("c_repeat1")); + return await interaction.reply(`❌ | ${loc.get("c_repeat1")}`); }, }; diff --git a/src/commands/music/skip.ts b/src/commands/music/skip.ts index 66838a6..261799b 100644 --- a/src/commands/music/skip.ts +++ b/src/commands/music/skip.ts @@ -53,6 +53,6 @@ export default { return await interaction.reply(msg); } - return await interaction.reply(loc.get("c_skip2")); + return await interaction.reply(`❌ | ${loc.get("c_skip2")}`); }, }; diff --git a/src/commands/music/stop.ts b/src/commands/music/stop.ts index 3379335..cd96d1a 100644 --- a/src/commands/music/stop.ts +++ b/src/commands/music/stop.ts @@ -31,7 +31,7 @@ export default { }); if (!(queue.connection || queue.playing)) { - return interaction.reply(loc.get("c_stop1")); + return interaction.reply(`❌ | ${loc.get("c_stop1")}`); } queue.destroy();