From 960d55359546ef593bad9f2a0b7384c757346410 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sat, 15 Jul 2023 02:43:01 +0200 Subject: [PATCH] fix: Updated user messages for /skip command --- commands/skip.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/commands/skip.js b/commands/skip.js index c63a001..30d5fae 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -1,7 +1,7 @@ const { SlashCommandBuilder } = require('@discordjs/builders'); const { useQueue } = require('discord-player'); const { EmbedBuilder } = require('discord.js'); -const { embedColors } = require('../config.json'); +const { embedColors, embedIcons } = require('../config.json'); module.exports = { data: new SlashCommandBuilder() @@ -20,7 +20,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - '**Failed**\nYou need to be in a voice channel to use this command.' + `**${embedIcons.warning} Oops!**\nYou need to be in a voice channel to use this command.` ) .setColor(embedColors.colorWarning) ] @@ -34,7 +34,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - '**Failed**\nThere are no tracks in the queue. Add tracks with `/play`!' + `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some tracks with \`/play\`!` ) .setColor(embedColors.colorWarning) ] @@ -49,9 +49,9 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**Error**\nThere are \`${queue.tracks.data.length}\` tracks in the queue. You cannot skip to track number \`${skipToTrack}\`.` + `**${embedIcons.warning} Oops!**\nThere are only \`${queue.tracks.data.length}\` tracks in the queue. You cannot skip to track \`${skipToTrack}\`.\n\nView tracks added to the queue with \`/queue\`.` ) - .setColor(embedColors.colorError) + .setColor(embedColors.colorWarning) ] }); } else { @@ -71,7 +71,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**.` + `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**.` ) .setThumbnail(skippedTrack.thumbnail) .setColor(embedColors.colorSuccess) @@ -84,7 +84,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - '**Failed**\nThere are no tracks in the queue and nothing currently playing.' + `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with \`/play\`!` ) .setColor(embedColors.colorWarning) ] @@ -107,7 +107,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**.` + `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**.` ) .setThumbnail(skippedTrack.thumbnail) .setColor(embedColors.colorSuccess)