From c11fd9c542729c11d29e491efc50e9048a2de868 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sun, 16 Jul 2023 14:39:50 +0200 Subject: [PATCH 1/5] fix: Fixed showing top x guild count on /guilds system command --- system-commands/guilds.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system-commands/guilds.js b/system-commands/guilds.js index 1913166..e98c753 100644 --- a/system-commands/guilds.js +++ b/system-commands/guilds.js @@ -41,8 +41,8 @@ module.exports = { let embedDescription = `**${embedIcons.bot} ${ client.guilds.cache.size < 50 - ? 'Guilds' - : `Top ${client.guilds.cache.size} guilds` + ? `Top ${client.guilds.cache.size} guilds` + : 'Top 50 guilds' } by member count (${client.guilds.cache.size} total)**\n${guildsList}`; if (embedDescription.length >= 4000) { From 2a35c1864fe06bffac423fa7faffb4de7d89fb49 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sun, 16 Jul 2023 18:08:00 +0200 Subject: [PATCH 2/5] feat: Added /seek command --- commands/seek.js | 168 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 commands/seek.js diff --git a/commands/seek.js b/commands/seek.js new file mode 100644 index 0000000..930b220 --- /dev/null +++ b/commands/seek.js @@ -0,0 +1,168 @@ +const { SlashCommandBuilder } = require('@discordjs/builders'); +const { useQueue } = require('discord-player'); +const { EmbedBuilder } = require('discord.js'); +const { embedColors, embedIcons } = require('../config.json'); + +module.exports = { + data: new SlashCommandBuilder() + .setName('seek') + .setDescription('Seek to a specified duration in the current track.') + .setDMPermission(false) + .addStringOption((option) => + option + .setName('duration') + .setDescription( + 'Duration in format 00:00:00 (HH:mm:ss) to seek to.' + ) + .setRequired(true) + ), + run: async ({ interaction }) => { + if (!interaction.member.voice.channel) { + return await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setDescription( + `**${embedIcons.warning} Oops!**\nYou need to be in a voice channel to use this command.` + ) + .setColor(embedColors.colorWarning) + ] + }); + } + + const queue = useQueue(interaction.guild.id); + + if (!queue) { + return await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setDescription( + `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some tracks with \`/play\`!` + ) + .setColor(embedColors.colorWarning) + ] + }); + } + + if (!queue.currentTrack) { + return await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setDescription( + `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with \`/play\`!` + ) + .setColor(embedColors.colorWarning) + ] + }); + } + + const durationInput = interaction.options.getString('duration'); + let durationArray = durationInput.split(':'); + + switch (durationArray.length) { + case 1: + durationArray.unshift('00', '00'); + break; + case 2: + durationArray.unshift('00'); + break; + default: + break; + } + + if (durationArray.length === 0 || durationArray.length > 3) { + return await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setDescription( + `**${embedIcons.warning} Oops!**\nYou entered an invalid duration format, \`${durationString}\`.\n\nPlease use the format \`HH:mm:ss\`, \`mm:ss\` or \`ss\`, where \`HH\` is hours, \`mm\` is minutes and \`ss\` is seconds.\n\n**Examples:**\n` + + '- `/seek` **`1:24:12`** - Seek to 1 hour, 24 minutes and 12 seconds.\n' + + '- `/seek` **`3:27`** - Seek to 3 minutes and 27 seconds.\n' + + '- `/seek` **`42`** - Seek to 42 seconds.' + ) + .setColor(embedColors.colorWarning) + ] + }); + } + + durationArray = durationArray.map((value) => { + return value.padStart(2, '0'); + }); + + const durationString = durationArray.join(':'); + + let validElements = durationArray.every((value) => { + return value.length === 2; + }); + + if (!validElements) { + return await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setDescription( + `**${embedIcons.warning} Oops!**\nYou entered an invalid duration format, \`${durationString}\`.\n\nPlease use the format \`HH:mm:ss\`, \`mm:ss\` or \`ss\`, where \`HH\` is hours, \`mm\` is minutes and \`ss\` is seconds.\n\n**Examples:**\n` + + '- `/seek` **`1:24:12`** - Seek to 1 hour, 24 minutes and 12 seconds.\n' + + '- `/seek` **`3:27`** - Seek to 3 minutes and 27 seconds.\n' + + '- `/seek` **`42`** - Seek to 42 seconds.' + ) + .setColor(embedColors.colorWarning) + ] + }); + } + + // Now array should only be 3 elements long, all with 2 characters, e.g. ['00', '00', '00']. + // Regex can now validate if this is a valid duration format. E.g. check if the first element is 0-23, second element is 0-59 and third element is 0-59. + const regex = new RegExp('([0-1][0-9]|2[0-3]):?[0-5][0-9]:?[0-5][0-9]'); + const isValidDuration = regex.test(durationString); + + if (!isValidDuration) { + return await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setDescription( + `**${embedIcons.warning} Oops!**\nYou entered an invalid duration format, \`${durationString}\`.\n\nPlease use the format \`HH:mm:ss\`, \`mm:ss\` or \`ss\`, where \`HH\` is hours, \`mm\` is minutes and \`ss\` is seconds.\n\n**Examples:**\n` + + '- `/seek` **`1:24:12`** - Seek to 1 hour, 24 minutes and 12 seconds.\n' + + '- `/seek` **`3:27`** - Seek to 3 minutes and 27 seconds.\n' + + '- `/seek` **`42`** - Seek to 42 seconds.' + ) + .setColor(embedColors.colorWarning) + ] + }); + } + + const currentTrackMaxDurationInMs = queue.currentTrack.durationMS; + const durationInMilliseconds = + durationArray[0] * 3600000 + + durationArray[1] * 60000 + + durationArray[2] * 1000; + + if (durationInMilliseconds > currentTrackMaxDurationInMs - 1000) { + return await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setDescription( + `**${embedIcons.warning} Oops!**\nYou entered **\`${durationString}\`**, which is a duration that is longer than the duration for the current track.\n\nPlease try a duration that is less than the duration of the track (**\`${queue.currentTrack.duration}\`**).` + ) + .setColor(embedColors.colorWarning) + ] + }); + } + + queue.node.seek(durationInMilliseconds); + return await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setAuthor({ + name: + interaction.member.nickname || + interaction.user.username, + iconURL: interaction.user.avatarURL() + }) + .setDescription( + `**${embedIcons.success} Seeking to duration**\nSeeking to **\`${durationString}\`** in current track.` + ) + .setThumbnail(queue.currentTrack.thumbnail) + .setColor(embedColors.colorSuccess) + ] + }); + } +}; From 2f1974d2ba7f12f5ab3fb67f99066d3fb81221d9 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sun, 16 Jul 2023 18:08:18 +0200 Subject: [PATCH 3/5] fix: Updated /help with seek command --- commands/help.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/help.js b/commands/help.js index bdce938..3a1e962 100644 --- a/commands/help.js +++ b/commands/help.js @@ -17,8 +17,9 @@ module.exports = { '- `/pause` - Pause or resume the current track.\n' + '- `/queue` `[page]` - Show the list of tracks added to the queue.\n' + `- \`/nowplaying\` - ${embedIcons.new} Show information about the track currently playing.\n` + + `- \`/seek\` - ${embedIcons.beta} Seek to a specified duration in the current track.\n` + `- \`/loop\` \`mode\` - ${embedIcons.beta} Toggle looping a track, the whole queue or autoplay.\n` + - `- \`/filters\` - ${embedIcons.beta} Toggle various audio filters during playback.\n` + + '- `/filters` - Toggle various audio filters during playback.\n' + '- `/volume` `[percentage]` - Show or set the playback volume for tracks.\n' + '- `/skip` `[trackNumber]` - Skip to next or specified track.\n' + '- `/remove` `trackNumber` - Remove specified track from the queue.\n' + From 8ecad8a02e3ca765bed74db0eb0b351a06813730 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sun, 16 Jul 2023 18:08:37 +0200 Subject: [PATCH 4/5] fix: Update duration format in places to have bold text --- commands/nowplaying.js | 8 ++++---- commands/play.js | 6 +++--- commands/queue.js | 8 ++++---- commands/remove.js | 2 +- commands/skip.js | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/commands/nowplaying.js b/commands/nowplaying.js index ec60973..fed89fc 100644 --- a/commands/nowplaying.js +++ b/commands/nowplaying.js @@ -83,16 +83,16 @@ module.exports = { 'Unavailable'; const queueLength = queue.tracks.data.length; const timestamp = queue.node.getTimestamp(); - let bar = `\`${ + let bar = `**\`${ timestamp.current.label - }\` ${queue.node.createProgressBar({ + }\`** ${queue.node.createProgressBar({ queue: false, length: progressBarOptions.length ?? 12, timecodes: progressBarOptions.timecodes ?? false, indicator: progressBarOptions.indicator ?? '🔘', leftChar: progressBarOptions.leftChar ?? '▬', rightChar: progressBarOptions.rightChar ?? '▬' - })} \`${timestamp.total.label}\``; + })} **\`${timestamp.total.label}\`**`; if ( currentTrack.raw.duration === 0 || @@ -233,7 +233,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` + + `**${embedIcons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${skippedTrack.url})**` + `${ queue.repeatMode === 0 ? '' diff --git a/commands/play.js b/commands/play.js index b60b7b6..4e18996 100644 --- a/commands/play.js +++ b/commands/play.js @@ -179,7 +179,7 @@ module.exports = { .setDescription( `**${ embedIcons.success - } Added playlist to queue**\n${durationFormat} **[${ + } Added playlist to queue**\n**${durationFormat} [${ track.title }](${track.url})**\n\nAnd **${ searchResult.tracks.length - 1 @@ -203,7 +203,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.audioStartedPlaying} Started playing**\n${durationFormat} **[${track.title}](${track.url})**` + `**${embedIcons.audioStartedPlaying} Started playing**\n**${durationFormat} [${track.title}](${track.url})**` ) .setThumbnail(track.thumbnail) .setColor(embedColors.colorSuccess) @@ -221,7 +221,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `${embedIcons.success} **Added to queue**\n${durationFormat} **[${track.title}](${track.url})**` + `${embedIcons.success} **Added to queue**\n**${durationFormat} [${track.title}](${track.url})**` ) .setThumbnail(track.thumbnail) .setColor(embedColors.colorSuccess) diff --git a/commands/queue.js b/commands/queue.js index 1179cc9..060434f 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -98,7 +98,7 @@ module.exports = { return `**${ pageIndex * 10 + index + 1 - }.** ${durationFormat} **[${track.title}](${track.url})**`; + }.** **${durationFormat} [${track.title}](${track.url})**`; }) .join('\n'); } @@ -146,16 +146,16 @@ module.exports = { }); } else { const timestamp = queue.node.getTimestamp(); - let bar = `\`${ + let bar = `**\`${ timestamp.current.label - }\` ${queue.node.createProgressBar({ + }\`** ${queue.node.createProgressBar({ queue: false, length: progressBarOptions.length ?? 12, timecodes: progressBarOptions.timecodes ?? false, indicator: progressBarOptions.indicator ?? '🔘', leftChar: progressBarOptions.leftChar ?? '▬', rightChar: progressBarOptions.rightChar ?? '▬' - })} \`${timestamp.total.label}\``; + })} **\`${timestamp.total.label}\`**`; if ( currentTrack.raw.duration === 0 || diff --git a/commands/remove.js b/commands/remove.js index 6a4d1e4..c0d33d9 100644 --- a/commands/remove.js +++ b/commands/remove.js @@ -73,7 +73,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.success} Removed track**\n${durationFormat} **[${removedTrack.title}](${removedTrack.url})**` + `**${embedIcons.success} Removed track**\n**${durationFormat} [${removedTrack.title}](${removedTrack.url})**` ) .setThumbnail(removedTrack.thumbnail) .setColor(embedColors.colorSuccess) diff --git a/commands/skip.js b/commands/skip.js index 731835f..51e4995 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -73,7 +73,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` + `**${embedIcons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${skippedTrack.url})**` ) .setThumbnail(skippedTrack.thumbnail) .setColor(embedColors.colorSuccess) @@ -120,7 +120,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` + + `**${embedIcons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${skippedTrack.url})**` + `${ queue.repeatMode === 0 ? '' From ae134a78ff7486d059c5d8232d804475e4c1a21c Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sun, 16 Jul 2023 18:19:04 +0200 Subject: [PATCH 5/5] fix: Make commands bold when referenced in replies. --- commands/filters.js | 2 +- commands/help.js | 22 +++++++++++----------- commands/leave.js | 2 +- commands/loop.js | 2 +- commands/nowplaying.js | 10 +++++----- commands/pause.js | 4 ++-- commands/play.js | 2 +- commands/queue.js | 4 ++-- commands/remove.js | 4 ++-- commands/seek.js | 4 ++-- commands/skip.js | 8 ++++---- commands/volume.js | 2 +- 12 files changed, 33 insertions(+), 33 deletions(-) diff --git a/commands/filters.js b/commands/filters.js index 37229fa..e5011e5 100644 --- a/commands/filters.js +++ b/commands/filters.js @@ -39,7 +39,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue. First add some tracks with \`/play\`!` + `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue. First add some tracks with **\`/play\`**!` ) .setColor(embedColors.colorWarning) ] diff --git a/commands/help.js b/commands/help.js index 3a1e962..7a22be9 100644 --- a/commands/help.js +++ b/commands/help.js @@ -13,17 +13,17 @@ module.exports = { new EmbedBuilder() .setDescription( `${embedIcons.rule} **List of commands**\n` + - '- `/play` `query` - Add a track or playlist to the queue by url or search.\n' + - '- `/pause` - Pause or resume the current track.\n' + - '- `/queue` `[page]` - Show the list of tracks added to the queue.\n' + - `- \`/nowplaying\` - ${embedIcons.new} Show information about the track currently playing.\n` + - `- \`/seek\` - ${embedIcons.beta} Seek to a specified duration in the current track.\n` + - `- \`/loop\` \`mode\` - ${embedIcons.beta} Toggle looping a track, the whole queue or autoplay.\n` + - '- `/filters` - Toggle various audio filters during playback.\n' + - '- `/volume` `[percentage]` - Show or set the playback volume for tracks.\n' + - '- `/skip` `[trackNumber]` - Skip to next or specified track.\n' + - '- `/remove` `trackNumber` - Remove specified track from the queue.\n' + - '- `/leave` - Clear the queue and remove the bot from voice channel.\n\n' + + '- **`/play` `query`** - Add a track or playlist to the queue by url or search.\n' + + '- **`/pause`** - Pause or resume the current track.\n' + + '- **`/queue` `[page]`** - Show the list of tracks added to the queue.\n' + + '- **`/nowplaying`** - Show information about the track currently playing.\n' + + `- **\`/seek\` \`duration\`** - ${embedIcons.new} Seek to a specified duration in the current track.\n` + + `- **\`/loop\` \`mode\`** - ${embedIcons.beta} Toggle looping a track, the whole queue or autoplay.\n` + + '- **`/filters`** - Toggle various audio filters during playback.\n' + + '- **`/volume` `[percentage]`** - Show or set the playback volume for tracks.\n' + + '- **`/skip` `[tracknumber]`** - Skip to next or specified track.\n' + + '- **`/remove` `tracknumber`** - Remove specified track from the queue.\n' + + '- **`/leave`** - Clear the queue and remove the bot from voice channel.\n\n' + `${embedIcons.support} **Support server**\nJoin the support server for help or suggestions: \n**${botInfo.supportServerInviteUrl}**\n\n` + `${embedIcons.bot} **Enjoying ${botInfo.name}?**\nAdd me to another server: \n**[Click me!](${botInfo.botInviteUrl})**` ) diff --git a/commands/leave.js b/commands/leave.js index 38daa19..a7f417d 100644 --- a/commands/leave.js +++ b/commands/leave.js @@ -52,7 +52,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.success} Leaving channel**\nCleared the track queue and left voice channel.\n\nTo play more music, use the \`/play\` command!` + `**${embedIcons.success} Leaving channel**\nCleared the track queue and left voice channel.\n\nTo play more music, use the **\`/play\`** command!` ) .setColor(embedColors.colorSuccess) ] diff --git a/commands/loop.js b/commands/loop.js index 62e8464..2863a69 100644 --- a/commands/loop.js +++ b/commands/loop.js @@ -40,7 +40,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some 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) ] diff --git a/commands/nowplaying.js b/commands/nowplaying.js index fed89fc..51f93c3 100644 --- a/commands/nowplaying.js +++ b/commands/nowplaying.js @@ -32,7 +32,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some 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) ] @@ -44,7 +44,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with \`/play\`!` + `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with **\`/play\`**!` ) .setColor(embedColors.colorWarning) ] @@ -141,7 +141,7 @@ module.exports = { queue.repeatMode === 3 ? embedIcons.autoplay : embedIcons.loop - } Looping**\nLoop mode is set to ${loopModeUserString}. You can change it with \`/loop\`.` + } Looping**\nLoop mode is set to ${loopModeUserString}. You can change it with **\`/loop\`**.` }` ) .addFields( @@ -190,7 +190,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with \`/play\`!` + `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with **\`/play\`**!` ) .setColor(embedColors.colorWarning) ], @@ -241,7 +241,7 @@ module.exports = { queue.repeatMode === 3 ? embedIcons.autoplaying : embedIcons.looping - } Looping**\nLoop mode is set to ${repeatModeUserString}. You can change it with \`/loop\`.` + } Looping**\nLoop mode is set to ${repeatModeUserString}. You can change it with **\`/loop\`**.` }` ) .setThumbnail(skippedTrack.thumbnail) diff --git a/commands/pause.js b/commands/pause.js index b064e18..9fbe819 100644 --- a/commands/pause.js +++ b/commands/pause.js @@ -28,7 +28,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some 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) ] @@ -40,7 +40,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with \`/play\`!` + `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with **\`/play\`**!` ) .setColor(embedColors.colorWarning) ] diff --git a/commands/play.js b/commands/play.js index 4e18996..9099338 100644 --- a/commands/play.js +++ b/commands/play.js @@ -183,7 +183,7 @@ module.exports = { track.title }](${track.url})**\n\nAnd **${ searchResult.tracks.length - 1 - }** more tracks... \`/queue\` to view all.` + }** more tracks... **\`/queue\`** to view all.` ) .setThumbnail(track.thumbnail) .setColor(embedColors.colorSuccess) diff --git a/commands/queue.js b/commands/queue.js index 060434f..9f29f11 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -43,7 +43,7 @@ module.exports = { .setDescription( `**${embedIcons.warning} Oops!**\nPage \`${ pageIndex + 1 - }\` is not a valid page number.\n\nThe queue is currently empty, first add some tracks with \`/play\`!` + }\` is not a valid page number.\n\nThe queue is currently empty, first add some tracks with **\`/play\`**!` ) .setColor(embedColors.colorWarning) ] @@ -121,7 +121,7 @@ module.exports = { queue.repeatMode === 3 ? embedIcons.autoplay : embedIcons.loop - } Looping**\nLoop mode is set to ${loopModeUserString}. You can change it with \`/loop\`.\n\n` + } Looping**\nLoop mode is set to ${loopModeUserString}. You can change it with **\`/loop\`**.\n\n` }`; if (!currentTrack) { diff --git a/commands/remove.js b/commands/remove.js index c0d33d9..f72f0b9 100644 --- a/commands/remove.js +++ b/commands/remove.js @@ -35,7 +35,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some 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,7 +49,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nTrack \`${removeTrackNumber}\` is not a valid track number. There are a total of\`${queue.tracks.data.length}\` tracks in the queue.\n\nView tracks added to the queue with \`/queue\`.` + `**${embedIcons.warning} Oops!**\nTrack \`${removeTrackNumber}\` is not a valid track number. There are a total of\`${queue.tracks.data.length}\` tracks in the queue.\n\nView tracks added to the queue with **\`/queue\`**.` ) .setColor(embedColors.colorWarning) ] diff --git a/commands/seek.js b/commands/seek.js index 930b220..5431e50 100644 --- a/commands/seek.js +++ b/commands/seek.js @@ -36,7 +36,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some 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) ] @@ -48,7 +48,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with \`/play\`!` + `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with **\`/play\`**!` ) .setColor(embedColors.colorWarning) ] diff --git a/commands/skip.js b/commands/skip.js index 51e4995..7a6a003 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -34,7 +34,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some 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,7 +49,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${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\`.` + `**${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.colorWarning) ] @@ -86,7 +86,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with \`/play\`!` + `**${embedIcons.warning} Oops!**\nThere is nothing currently playing. First add some tracks with **\`/play\`**!` ) .setColor(embedColors.colorWarning) ] @@ -128,7 +128,7 @@ module.exports = { queue.repeatMode === 3 ? embedIcons.autoplaying : embedIcons.looping - } Looping**\nLoop mode is set to ${loopModeUserString}. You can change it with \`/loop\`.` + } Looping**\nLoop mode is set to ${loopModeUserString}. You can change it with **\`/loop\`**.` }` ) .setThumbnail(skippedTrack.thumbnail) diff --git a/commands/volume.js b/commands/volume.js index 9be0296..e74f43e 100644 --- a/commands/volume.js +++ b/commands/volume.js @@ -35,7 +35,7 @@ module.exports = { embeds: [ new EmbedBuilder() .setDescription( - `**${embedIcons.warning} Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some 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) ]