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']

}
]
});
discord-api-types documentation
discord-api-types - Imagine typings
discord-api-types is a simple Node/Deno module that brings up to date typings for Discord's API
2 Replies
d.js toolkit
d.js toolkit15mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Parogo_72
Parogo_7215mo ago
Its ManageRoles
Want results from more Discord servers?
Add your server