mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
Merge pull request #30 from mariusbegby/add-nowplaying-command-to-help-menu
fix: Updated descriptions for commands and /help command
This commit is contained in:
6 files changed
+20
-21
No files matched your search
+8
-7
@@ -6,7 +6,7 @@ const { embedColors } = require('../config.json');
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('help')
|
||||
.setDescription('Show a list of commands to use.'),
|
||||
.setDescription('Show a list of commands and their usage.'),
|
||||
run: async ({ interaction }) => {
|
||||
return await interaction.editReply({
|
||||
embeds: [
|
||||
@@ -14,14 +14,15 @@ module.exports = {
|
||||
.setDescription(
|
||||
`**List of commands**\n` +
|
||||
`\`/help\` - Show this menu.\n` +
|
||||
`\`/play\` \`query\` - Add a track to the queue by search query or url.\n` +
|
||||
`\`/play\` \`query\` - Add a track or playlist to the queue by searching or url.\n` +
|
||||
`\`/pause\` - Pause or resume the current track.\n` +
|
||||
`\`/skip\` - Skip the current track.\n` +
|
||||
`\`/remove\` - Remove a track from the queue.\n` +
|
||||
`\`/leave\` - Remove bot from voice channel and clear queue.\n` +
|
||||
`\`/queue\` - Show the list of tracks added to the queue.\n` +
|
||||
`\`/queue\` \`[page]\` - Show the list of tracks added to the queue.\n` +
|
||||
`\`/nowplaying\` - Show information about the track currently playing.\n` +
|
||||
`\`/filters\` - Toggle various audio filters during playback.\n` +
|
||||
`\`/volume\` \`[percentage]\` - Show or set the playback volume for tracks.\n` +
|
||||
`\`/filters\` - Toggle various audio filters during playback.\n`
|
||||
`\`/skip\` \`[trackNumber]\` - Skip the current track.\n` +
|
||||
`\`/remove\` \`trackNumber\` - Remove a specific track from the queue.\n` +
|
||||
`\`/leave\` - Remove bot from voice channel and clear the queue.\n`
|
||||
)
|
||||
.setColor(embedColors.colorInfo)
|
||||
]
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ const { embedColors } = require('../config.json');
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('pause')
|
||||
.setDescription('Pause the currently playing track.'),
|
||||
.setDescription('Pause or resume the current track.'),
|
||||
run: async ({ interaction }) => {
|
||||
if (!interaction.member.voice.channel) {
|
||||
return await interaction.editReply({
|
||||
|
||||
+2
-2
@@ -6,11 +6,11 @@ const { embedColors, playerOptions } = require('../config.json');
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('play')
|
||||
.setDescription('Play a track provided by search terms or URL.')
|
||||
.setDescription('Add a track or playlist to the queue by searching or url.')
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName('query')
|
||||
.setDescription('Search terms or URL.')
|
||||
.setDescription('Search query or URL.')
|
||||
.setRequired(true)
|
||||
),
|
||||
run: async ({ interaction }) => {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ const { embedColors, progressBarOptions } = require('../config.json');
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('queue')
|
||||
.setDescription('Show list of tracks added to queue.')
|
||||
.setDescription('Show the list of tracks added to the queue.')
|
||||
.addNumberOption((option) =>
|
||||
option
|
||||
.setName('page')
|
||||
|
||||
+2
-2
@@ -6,11 +6,11 @@ const { embedColors } = require('../config.json');
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('remove')
|
||||
.setDescription('Remove a track from the queue.')
|
||||
.setDescription('Remove a specific track from the queue.')
|
||||
.addNumberOption((option) =>
|
||||
option
|
||||
.setName('tracknumber')
|
||||
.setDescription('Remove specified track number from queue.')
|
||||
.setDescription('Track number to remove from queue.')
|
||||
.setMinValue(1)
|
||||
.setRequired(true)
|
||||
),
|
||||
|
||||
+6
-8
@@ -6,13 +6,11 @@ const { embedColors } = require('../config.json');
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('skip')
|
||||
.setDescription('Skip the currently playing track.')
|
||||
.setDescription('Skip the current track.')
|
||||
.addNumberOption((option) =>
|
||||
option
|
||||
.setName('tracknumber')
|
||||
.setDescription(
|
||||
'Skip to next track or the given track number in the queue.'
|
||||
)
|
||||
.setDescription('Track number to skip to in the queue.')
|
||||
.setMinValue(1)
|
||||
),
|
||||
run: async ({ interaction }) => {
|
||||
@@ -58,10 +56,10 @@ module.exports = {
|
||||
} else {
|
||||
const skippedTrack = queue.currentTrack;
|
||||
let durationFormat =
|
||||
skippedTrack.raw.duration === 0 ||
|
||||
skippedTrack.duration === '0:00'
|
||||
? ''
|
||||
: `\`${skippedTrack.duration}\``;
|
||||
skippedTrack.raw.duration === 0 ||
|
||||
skippedTrack.duration === '0:00'
|
||||
? ''
|
||||
: `\`${skippedTrack.duration}\``;
|
||||
queue.node.skipTo(skipToTrack - 1);
|
||||
|
||||
return await interaction.editReply({
|
||||
|
||||
Reference in new issue
Block a user