#I dont have a clue how to fix this error
20 messages · Page 1 of 1 (latest)
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
So i have a question i work with a databse is it possible to change the id to the database channelid/
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?
TicketsDB is just the database.
why not pass that in the edit instead of staffrole and manrole? that literally confuses me
Because then membersid dont work.
If i put member id in the channel.edit it doenst work.
it won't work yes because strings don't have that method. just pass it directly in the edit:
channel.permissionOverwrites.edit(TicketsDB.MembersID, {...})
For every thing so management and staff
which ever role or member you want, yes
one of those ids you passed in there isn't a UserResolvable or RoleResolvable
I am going to check.
Everything is not a role or user
ya.. your syntax is wrong too