dui
dui
DIAdiscord.js - Imagine an app
Created by dui on 10/5/2023 in #djs-questions
Allow ManagePermission when creating voice channel
Hi, im creating a VC and want to give who join a channel 2 permission ManageChannels and ManagePermissions But when I check the document at https://discord-api-types.dev/api/discord-api-types-payloads/common#PermissionFlagsBits there is no mention of ManagePermission permission. this is how i create a VC
const vc = await newState.guild.channels.create({
type: ChannelType.GuildVoice,
name: `${newState.member.user.username ?? 'N/A'}`,
bitrate: newState.channel.bitrate || 64000,
parent: newState?.channel.parent,
permissionOverwrites: [
{
id: newState.member,
allow: ['ManageChannels']

}
]
});
const vc = await newState.guild.channels.create({
type: ChannelType.GuildVoice,
name: `${newState.member.user.username ?? 'N/A'}`,
bitrate: newState.channel.bitrate || 64000,
parent: newState?.channel.parent,
permissionOverwrites: [
{
id: newState.member,
allow: ['ManageChannels']

}
]
});
3 replies