channelUpdate compare permissions

Hey there, I tried using the channelUpdate event to get the difference between the old permissions and the new channel permissions.

There is a slight issue though. Upon using this line to check if the permissions are changed, it always logs false in console, making the permissions check basically usesless.
if(oldChannel.permissionOverwrites.cache == newChannel.permissionOverwrites.cache){
console.log(true)
} else console.log(false)

// it always shows false in this case
Was this page helpful?