From 6fbb47a41eab802be28f0df5bd5f5f963c679f46 Mon Sep 17 00:00:00 2001 From: Jonathan <54381371+yaboyaxis@users.noreply.github.com> Date: Mon, 12 Apr 2021 10:36:34 -0400 Subject: [PATCH] perf: Removed unecessary destructuring --- backend/src/plugins/AFK/AFKPlugin.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/src/plugins/AFK/AFKPlugin.ts b/backend/src/plugins/AFK/AFKPlugin.ts index 8b74571d..b8f8b94d 100644 --- a/backend/src/plugins/AFK/AFKPlugin.ts +++ b/backend/src/plugins/AFK/AFKPlugin.ts @@ -52,9 +52,7 @@ export const AFKPlugin = zeppelinGuildPlugin()("afk", { commands: [AfkSetCmd], events: [AFKNotificationEvt], - onLoad(pluginData) { - const { state } = pluginData; - + onLoad({ state }) { state.afkUsers = new AFK(); } })