#I dont have a clue how to fix this error

20 messages · Page 1 of 1 (latest)

sly finch

strings don't have such a method

you'd need to get the channel object first to edit the permission:
<Guild>.channels.cache.get(Id)
also if changing perms of multiple channels, better do them in an interval/timeout

wdym and then?

that's all

fringe vortex

So i have a question i work with a databse is it possible to change the id to the database channelid/

sly finch

of course

that's up to you to structure it

what exactly are you trying to achieve in that code?

so what are those TicketsDB for if you already passed the role like staffrole in the edit method?

fringe vortex

TicketsDB is just the database.

sly finch

why not pass that in the edit instead of staffrole and manrole? that literally confuses me

fringe vortex

If i put member id in the channel.edit it doenst work.

sly finch

it won't work yes because strings don't have that method. just pass it directly in the edit:

channel.permissionOverwrites.edit(TicketsDB.MembersID, {...})
fringe vortex

For every thing so management and staff

sly finch

which ever role or member you want, yes

one of those ids you passed in there isn't a UserResolvable or RoleResolvable

fringe vortex

I am going to check.

fringe vortex
sly finch

ya.. your syntax is wrong too