I am working on the roleUpdate event on my Discord bot, I have old role permissions, and new role permissions in the form of an array which prints:
[ 'VIEW_AUDIT_LOG', 'MANAGE_ROLES' ] // Old Roles
[ 'MANAGE_GUILD', 'VIEW_AUDIT_LOG', 'MANAGE_ROLES' ] // New Roles
Following this example, the output I need would be MANAGE_GUILD as that is the only changed object.
How would I go about doing something like this?