mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 16:55:03 +00:00
perf: Switched AFK check to improve speed
This commit is contained in:
parent
56fcf1d1e7
commit
8a94f4e8d2
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue