mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: Make commands inaccessible in direct messages
This commit is contained in:
1 parent
3c85841b87
commit
a4e7931dae
12 files changed
+19
-7
No files matched your search
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user