From ae134a78ff7486d059c5d8232d804475e4c1a21c Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sun, 16 Jul 2023 18:19:04 +0200 Subject: [PATCH] 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) ]