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:
Marius Begby authored and GitHub committed 2023-07-13 08:27:20 +02:00
commit d96b40e277
6 files changed
+16 -17

No files matched your search

+8 -7
View File
@@ -6,7 +6,7 @@ const { embedColors } = require('../config.json');
module.exports = { module.exports = {
data: new SlashCommandBuilder() data: new SlashCommandBuilder()
.setName('help') .setName('help')
.setDescription('Show a list of commands to use.'), .setDescription('Show a list of commands and their usage.'),
run: async ({ interaction }) => { run: async ({ interaction }) => {
return await interaction.editReply({ return await interaction.editReply({
embeds: [ embeds: [
@@ -14,14 +14,15 @@ module.exports = {
.setDescription( .setDescription(
`**List of commands**\n` + `**List of commands**\n` +
`\`/help\` - Show this menu.\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` + `\`/pause\` - Pause or resume the current track.\n` +
`\`/skip\` - Skip the current track.\n` + `\`/queue\` \`[page]\` - Show the list of tracks added to the queue.\n` +
`\`/remove\` - Remove a track from the queue.\n` + `\`/nowplaying\` - Show information about the track currently playing.\n` +
`\`/leave\` - Remove bot from voice channel and clear queue.\n` + `\`/filters\` - Toggle various audio filters during playback.\n` +
`\`/queue\` - Show the list of tracks added to the queue.\n` +
`\`/volume\` \`[percentage]\` - Show or set the playback volume for tracks.\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) .setColor(embedColors.colorInfo)
] ]
+1 -1
View File
@@ -6,7 +6,7 @@ const { embedColors } = require('../config.json');
module.exports = { module.exports = {
data: new SlashCommandBuilder() data: new SlashCommandBuilder()
.setName('pause') .setName('pause')
.setDescription('Pause the currently playing track.'), .setDescription('Pause or resume the current track.'),
run: async ({ interaction }) => { run: async ({ interaction }) => {
if (!interaction.member.voice.channel) { if (!interaction.member.voice.channel) {
return await interaction.editReply({ return await interaction.editReply({
+2 -2
View File
@@ -6,11 +6,11 @@ const { embedColors, playerOptions } = require('../config.json');
module.exports = { module.exports = {
data: new SlashCommandBuilder() data: new SlashCommandBuilder()
.setName('play') .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) => .addStringOption((option) =>
option option
.setName('query') .setName('query')
.setDescription('Search terms or URL.') .setDescription('Search query or URL.')
.setRequired(true) .setRequired(true)
), ),
run: async ({ interaction }) => { run: async ({ interaction }) => {
+1 -1
View File
@@ -6,7 +6,7 @@ const { embedColors, progressBarOptions } = require('../config.json');
module.exports = { module.exports = {
data: new SlashCommandBuilder() data: new SlashCommandBuilder()
.setName('queue') .setName('queue')
.setDescription('Show list of tracks added to queue.') .setDescription('Show the list of tracks added to the queue.')
.addNumberOption((option) => .addNumberOption((option) =>
option option
.setName('page') .setName('page')
+2 -2
View File
@@ -6,11 +6,11 @@ const { embedColors } = require('../config.json');
module.exports = { module.exports = {
data: new SlashCommandBuilder() data: new SlashCommandBuilder()
.setName('remove') .setName('remove')
.setDescription('Remove a track from the queue.') .setDescription('Remove a specific track from the queue.')
.addNumberOption((option) => .addNumberOption((option) =>
option option
.setName('tracknumber') .setName('tracknumber')
.setDescription('Remove specified track number from queue.') .setDescription('Track number to remove from queue.')
.setMinValue(1) .setMinValue(1)
.setRequired(true) .setRequired(true)
), ),
+2 -4
View File
@@ -6,13 +6,11 @@ const { embedColors } = require('../config.json');
module.exports = { module.exports = {
data: new SlashCommandBuilder() data: new SlashCommandBuilder()
.setName('skip') .setName('skip')
.setDescription('Skip the currently playing track.') .setDescription('Skip the current track.')
.addNumberOption((option) => .addNumberOption((option) =>
option option
.setName('tracknumber') .setName('tracknumber')
.setDescription( .setDescription('Track number to skip to in the queue.')
'Skip to next track or the given track number in the queue.'
)
.setMinValue(1) .setMinValue(1)
), ),
run: async ({ interaction }) => { run: async ({ interaction }) => {