#Give every voice channel permission

28 messages · Page 1 of 1 (latest)

tall plaza
#

I am creating private voice channels and I want to give the owner of the channel every permission is there a simpler way of doing this then just manually listing out every permission and setting then to true? Thank you if you help

#

• 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.

solid oreBOT
rough rose
#

But this would also include administrator etc. do you really want that?

tall plaza
#

Administrator does not do anything on voice channels

#

I tried just giving administrator and it didnt work

#

Also I just did this and it seems to work

rough rose
#

So you don’t actually want to give them all permissions after all😉

tall plaza
#

I mean

#

I was going too

#

But then I realised its probably not a good idea to give them the ability to add webhooks

rough rose
#

You also overwrite any existing overrides by that, is that intended?

tall plaza
#

Yes, I create the channel directly above that

rough rose
#

Then why not include the permissionOverwrites in the create call too?

tall plaza
#

I did not know you could do that-

rough rose
#

You can

tall plaza
#

Like this?

rough rose
#

Since you seem to use typescript you should know by now that it‘s correct 😉

tall plaza
#

I should- I just doubt myself lmao

rough rose
#

But why seperate the two allow/deny objects?

tall plaza
#

It didnt work with one

rough rose
#

It won’t work with two either. The second would overwrite the first one

tall plaza
#

Well

rough rose
#

You need to exclude those you want to deny from the allow array

tall plaza
#

Aah okay

#

Prolly scuffed but it works :p

#

Uhh crap- I can just give myself the permission back-