From 7fa972b4112b47f0ac918a0fd46257fe7f424034 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 5 Feb 2024 21:26:47 +0100 Subject: [PATCH] deny command access in DMs --- commands/admin/ctx_add_self_roles.js | 1 + commands/admin/slash_self_roles.js | 1 + 2 files changed, 2 insertions(+) diff --git a/commands/admin/ctx_add_self_roles.js b/commands/admin/ctx_add_self_roles.js index 0777a5e..041ebc1 100644 --- a/commands/admin/ctx_add_self_roles.js +++ b/commands/admin/ctx_add_self_roles.js @@ -2,6 +2,7 @@ import { Message } from '../../database.js'; import { ApplicationCommandType, ContextMenuCommandBuilder } from 'discord.js'; export const data = new ContextMenuCommandBuilder() + .setDMPermission(false) .setName('Register self roles') .setType(ApplicationCommandType.Message); export async function execute(interaction) { diff --git a/commands/admin/slash_self_roles.js b/commands/admin/slash_self_roles.js index 1438f40..8a28402 100644 --- a/commands/admin/slash_self_roles.js +++ b/commands/admin/slash_self_roles.js @@ -113,6 +113,7 @@ const addSelfRoles = async (interaction) => { export const data = new SlashCommandBuilder() .setName('self_roles') + .setDMPermission(false) .setDescription('Manages reactions for self roles.') .addSubcommand(subcommand => subcommand