diff --git a/commands/filters.js b/commands/filters.js index 941c5f0..0df792b 100644 --- a/commands/filters.js +++ b/commands/filters.js @@ -16,7 +16,8 @@ const { module.exports = { data: new SlashCommandBuilder() .setName('filters') - .setDescription('Toggle various audio filters during playback.'), + .setDescription('Toggle various audio filters during playback.') + .setDMPermission(false), run: async ({ interaction }) => { if (!interaction.member.voice.channel) { return await interaction.editReply({ diff --git a/commands/help.js b/commands/help.js index 2e359b3..92d52d4 100644 --- a/commands/help.js +++ b/commands/help.js @@ -5,7 +5,8 @@ const { embedColors } = require('../config.json'); module.exports = { data: new SlashCommandBuilder() .setName('help') - .setDescription('Show a list of commands and their usage.'), + .setDescription('Show a list of commands and their usage.') + .setDMPermission(false), run: async ({ interaction }) => { return await interaction.editReply({ embeds: [ diff --git a/commands/leave.js b/commands/leave.js index 7f03b4c..1f23e79 100644 --- a/commands/leave.js +++ b/commands/leave.js @@ -8,7 +8,8 @@ module.exports = { .setName('leave') .setDescription( 'Clear the track queue and remove the bot from voice channel.' - ), + ) + .setDMPermission(false), // todo, allow command to be executed if bot is only member in voice channel run: async ({ interaction }) => { diff --git a/commands/nowplaying.js b/commands/nowplaying.js index c4882bd..b2ef645 100644 --- a/commands/nowplaying.js +++ b/commands/nowplaying.js @@ -6,7 +6,8 @@ const { embedColors, progressBarOptions } = require('../config.json'); module.exports = { data: new SlashCommandBuilder() .setName('nowplaying') - .setDescription('Show information about the track currently playing.'), + .setDescription('Show information about the track currently playing.') + .setDMPermission(false), run: async ({ interaction }) => { if (!interaction.member.voice.channel) { return await interaction.editReply({ diff --git a/commands/pause.js b/commands/pause.js index 5426095..d306427 100644 --- a/commands/pause.js +++ b/commands/pause.js @@ -6,7 +6,8 @@ const { embedColors } = require('../config.json'); module.exports = { data: new SlashCommandBuilder() .setName('pause') - .setDescription('Pause or resume the current track.'), + .setDescription('Pause or resume the current track.') + .setDMPermission(false), run: async ({ interaction }) => { if (!interaction.member.voice.channel) { return await interaction.editReply({ diff --git a/commands/play.js b/commands/play.js index 8146383..51a267c 100644 --- a/commands/play.js +++ b/commands/play.js @@ -9,6 +9,7 @@ module.exports = { .setDescription( 'Add a track or playlist to the queue by searching or url.' ) + .setDMPermission(false) .addStringOption((option) => option .setName('query') diff --git a/commands/queue.js b/commands/queue.js index 50e0b95..19584f7 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -7,6 +7,7 @@ module.exports = { data: new SlashCommandBuilder() .setName('queue') .setDescription('Show the list of tracks added to the queue.') + .setDMPermission(false) .addNumberOption((option) => option .setName('page') diff --git a/commands/remove.js b/commands/remove.js index 22a6729..d3efe45 100644 --- a/commands/remove.js +++ b/commands/remove.js @@ -7,6 +7,7 @@ module.exports = { data: new SlashCommandBuilder() .setName('remove') .setDescription('Remove a specific track from the queue.') + .setDMPermission(false) .addNumberOption((option) => option .setName('tracknumber') diff --git a/commands/skip.js b/commands/skip.js index ca13f21..9e74ffd 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -7,6 +7,7 @@ module.exports = { data: new SlashCommandBuilder() .setName('skip') .setDescription('Skip the current track.') + .setDMPermission(false) .addNumberOption((option) => option .setName('tracknumber') diff --git a/commands/volume.js b/commands/volume.js index 3207ca4..ad70f95 100644 --- a/commands/volume.js +++ b/commands/volume.js @@ -7,6 +7,7 @@ module.exports = { data: new SlashCommandBuilder() .setName('volume') .setDescription('Show or set the playback volume for tracks.') + .setDMPermission(false) .addNumberOption((option) => option .setName('percentage') diff --git a/system-commands/guilds.js b/system-commands/guilds.js index 216f192..97ffc22 100644 --- a/system-commands/guilds.js +++ b/system-commands/guilds.js @@ -5,7 +5,8 @@ const { embedColors, systemServerGuildIds } = require('../config.json'); module.exports = { data: new SlashCommandBuilder() .setName('guilds') - .setDescription('Show list of guilds where bot is added.'), + .setDescription('Show list of guilds where bot is added.') + .setDMPermission(false), run: async ({ interaction, client }) => { if (!systemServerGuildIds.includes(interaction.guildId)) { return await interaction.editReply({ diff --git a/system-commands/status.js b/system-commands/status.js index bbfa753..c5ba1b9 100644 --- a/system-commands/status.js +++ b/system-commands/status.js @@ -8,7 +8,8 @@ const packageJson = require('../package.json'); module.exports = { data: new SlashCommandBuilder() .setName('status') - .setDescription('Show bot status.'), + .setDescription('Show bot status.') + .setDMPermission(false), run: async ({ interaction, client }) => { if (!systemServerGuildIds.includes(interaction.guildId)) { return await interaction.editReply({