#How can I add multiple roles to a channel overwrite.

1 messages · Page 1 of 1 (latest)

analog tulip
#

So how can I use an array to make the roles inside of that array see that channel

covert crystal
#

use a for() loop

fair idol
#

No literally just use an array

analog tulip
#

really that would work

#

1 sec brb lmao

analog tulip
analog tulip
covert crystal
fair idol
#

can you show the code

analog tulip
#

I cant really show it because its all in one file but basiclly im trying to make a ticket system and have the allowed roles in a array

#

but

#

how can I replace the perms of a channel by its id

analog tulip
covert crystal
covert crystal
#

then do it?

analog tulip
#

so

const tchannel = client.channels.cache.get('id')

tchannel.permissionsOverwrites.edit({})```
analog tulip
covert crystal
#

so if you edit for person1, perms for person 2 will still be the same

analog tulip
covert crystal
#

maybe you need to use async/await on it but idk

#

dont remember

analog tulip
covert crystal
analog tulip
#

it fkin worked after like 3 hours

#

thanks