From 08fb9f6724eb0c9119e1ba4d1105942536f90959 Mon Sep 17 00:00:00 2001 From: Sebastian Pietschner Date: Thu, 31 Mar 2022 08:55:58 +0000 Subject: [PATCH] skip over if no new activity --- src/events/presenceUpdate.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/events/presenceUpdate.ts b/src/events/presenceUpdate.ts index 653bc02..2eb037f 100644 --- a/src/events/presenceUpdate.ts +++ b/src/events/presenceUpdate.ts @@ -12,6 +12,9 @@ export const presenceUpdate = new Event() ) return; const { channelId } = newPresence.member.voice; + if (!channelId) { + return; + } const dynamicaSecondary = await new DynamicaSecondary( newPresence.client, channelId