Fix Permission Issue

This commit is contained in:
ui_creeperlv 2024-03-06 18:47:23 +05:30
parent 1c115eaa6c
commit 32d18716cb
1 changed files with 2 additions and 1 deletions

View File

@ -1,8 +1,9 @@
const { SlashCommandBuilder } = require('discord.js'); const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = { module.exports = {
data: new SlashCommandBuilder() data: new SlashCommandBuilder()
.setName('setup') .setName('setup')
.setDefaultMemberPermissions(PermissionFlagsBits.ManageChannels)
.addChannelOption((o) => o .addChannelOption((o) => o
.setName("channel") .setName("channel")
.setDescription("Channel to Chat with Xantic") .setDescription("Channel to Chat with Xantic")