From 8a94f4e8d2f59d5ee8df007f202c7663d53786a1 Mon Sep 17 00:00:00 2001 From: Jonathan <54381371+yaboyaxis@users.noreply.github.com> Date: Mon, 12 Apr 2021 10:33:52 -0400 Subject: [PATCH] perf: Switched AFK check to improve speed --- backend/src/plugins/AFK/events/AFKNotificationEvt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/AFK/events/AFKNotificationEvt.ts b/backend/src/plugins/AFK/events/AFKNotificationEvt.ts index 0f32be09..a08ca991 100644 --- a/backend/src/plugins/AFK/events/AFKNotificationEvt.ts +++ b/backend/src/plugins/AFK/events/AFKNotificationEvt.ts @@ -27,7 +27,7 @@ export const AFKNotificationEvt = afkEvt({ } // Self AFK Check (if user is the one that's AFK) - const user = await pluginData.state.afkUsers.getUserAFKStatus(message.author.id); + const user = await pluginData.state.afkUsers.isAfk(message.author.id); if (!user) return; try {