permissionOverwrites

newState.guild.channels.create(String(chname.replace("{user}", newState.member.user.username)).substr(0, 32), {
type: 'GUILD_VOICE',
permissionOverwrites: [
{
id: newState.member.user.id,
allow: ['MANAGE_CHANNELS', "VIEW_CHANNEL", "MANAGE_ROLES", "CONNECT"]
}
],
newState.guild.channels.create(String(chname.replace("{user}", newState.member.user.username)).substr(0, 32), {
type: 'GUILD_VOICE',
permissionOverwrites: [
{
id: newState.member.user.id,
allow: ['MANAGE_CHANNELS', "VIEW_CHANNEL", "MANAGE_ROLES", "CONNECT"]
}
],
Why id doesnt work. I dont get any errors. It doesnt want to set these pemissions.
2 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Kasai
KasaiOP2y ago
Node: v18.16.0, Discord.js: [email protected]
Want results from more Discord servers?
Add your server