From 9983bb6e0ec8c6e8f1af880a6af724c26d490390 Mon Sep 17 00:00:00 2001 From: metal Date: Fri, 27 Aug 2021 11:06:34 +0000 Subject: [PATCH] didnt mean to remove this line! --- backend/src/plugins/Persist/events/StoreDataEvt.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/plugins/Persist/events/StoreDataEvt.ts b/backend/src/plugins/Persist/events/StoreDataEvt.ts index 69eca6b2..45dbda4b 100644 --- a/backend/src/plugins/Persist/events/StoreDataEvt.ts +++ b/backend/src/plugins/Persist/events/StoreDataEvt.ts @@ -13,6 +13,7 @@ export const StoreDataEvt = persistEvt({ let persist = false; const persistData: IPartialPersistData = {}; const config = await pluginData.config.getForUser(member.user); + const persistedRoles = config.persisted_roles; if (persistedRoles.length && member.roles) { const rolesToPersist = intersection(persistedRoles, [...member.roles.cache.keys()]);