generated from Baipyrus/DiscordJS-Template
deny command access in DMs
This commit is contained in:
parent
70d183e1ef
commit
7fa972b411
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user