Functioncorev0.4.1mergeRolesThe role ids a member holds after adding and removing the given sets. Removals win over additions. This does not write the roles. Apply the result with member.roles.set() on gateway, or PATCH the member over HTTP. mergeRoles( current: readonly string[], add: readonly string[], remove: readonly string[] ): string[]ExamplesCopyimport { mergeRoles } from '@seedcord/core'; // gateway const ids = mergeRoles(member.roles.cache.map((role) => role.id), ['123'], ['456']); await member.roles.set(ids);Paramscurrentcurrent: readonly string[]The role ids the member holds. addadd: readonly string[]The role ids to add. removeremove: readonly string[]The role ids to remove.