deny command access in DMs

This commit is contained in:
Baipyrus 2024-02-05 21:26:47 +01:00
parent 70d183e1ef
commit 7fa972b411
2 changed files with 2 additions and 0 deletions

View File

@ -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) {

View File

@ -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