3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 08:45:03 +00:00

perf: Switched AFK check to improve speed

This commit is contained in:
Jonathan 2021-04-12 10:33:52 -04:00
parent 56fcf1d1e7
commit 8a94f4e8d2
No known key found for this signature in database
GPG key ID: 19B04E3CBE0885B1

View file

@ -27,7 +27,7 @@ export const AFKNotificationEvt = afkEvt({
} }
// Self AFK Check (if user is the one that's AFK) // 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; if (!user) return;
try { try {