From a03e5388bc6c170a1d7fa6dbccd1cf3eeafa2a6d Mon Sep 17 00:00:00 2001 From: metal Date: Sat, 21 Aug 2021 17:57:09 +0000 Subject: [PATCH] prettify lol --- backend/src/plugins/CustomEvents/actions/addRoleAction.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/plugins/CustomEvents/actions/addRoleAction.ts b/backend/src/plugins/CustomEvents/actions/addRoleAction.ts index 7833d431..6b83770a 100644 --- a/backend/src/plugins/CustomEvents/actions/addRoleAction.ts +++ b/backend/src/plugins/CustomEvents/actions/addRoleAction.ts @@ -28,7 +28,9 @@ export async function addRoleAction( if (event.trigger.type === "command" && !canActOn(pluginData, eventData.msg.member, target)) { throw new ActionError("Missing permissions"); } - const rolesToAdd = (Array.isArray(action.role) ? action.role : [action.role]).filter(id => !target.roles.cache.has(id)); + const rolesToAdd = (Array.isArray(action.role) ? action.role : [action.role]).filter( + id => !target.roles.cache.has(id), + ); if (rolesToAdd.length === 0) { throw new ActionError("Target already has the role(s) specified"); }