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';
|
import { ApplicationCommandType, ContextMenuCommandBuilder } from 'discord.js';
|
||||||
|
|
||||||
export const data = new ContextMenuCommandBuilder()
|
export const data = new ContextMenuCommandBuilder()
|
||||||
|
.setDMPermission(false)
|
||||||
.setName('Register self roles')
|
.setName('Register self roles')
|
||||||
.setType(ApplicationCommandType.Message);
|
.setType(ApplicationCommandType.Message);
|
||||||
export async function execute(interaction) {
|
export async function execute(interaction) {
|
||||||
|
@ -113,6 +113,7 @@ const addSelfRoles = async (interaction) => {
|
|||||||
|
|
||||||
export const data = new SlashCommandBuilder()
|
export const data = new SlashCommandBuilder()
|
||||||
.setName('self_roles')
|
.setName('self_roles')
|
||||||
|
.setDMPermission(false)
|
||||||
.setDescription('Manages reactions for self roles.')
|
.setDescription('Manages reactions for self roles.')
|
||||||
.addSubcommand(subcommand =>
|
.addSubcommand(subcommand =>
|
||||||
subcommand
|
subcommand
|
||||||
|
Loading…
Reference in New Issue
Block a user