diff --git a/backend/src/plugins/CustomEvents/actions/addRoleAction.ts b/backend/src/plugins/CustomEvents/actions/addRoleAction.ts index f511398a..87e94519 100644 --- a/backend/src/plugins/CustomEvents/actions/addRoleAction.ts +++ b/backend/src/plugins/CustomEvents/actions/addRoleAction.ts @@ -33,7 +33,5 @@ export async function addRoleAction( if (rolesToAdd.length === 0) { throw new ActionError("Target already has the role(s) specified"); } - await target.edit({ - roles: Array.from(new Set([...targetRoles, ...rolesToAdd])) as Snowflake[], - }); + await target.roles.add(rolesToAdd); }