From 7771723413e106f34894e49fbf514794c85dcbae Mon Sep 17 00:00:00 2001 From: yuimarudev Date: Mon, 19 Feb 2024 16:31:48 +0900 Subject: [PATCH] refactor: code style --- prisma/schema.prisma | 2 +- src/handlers/voiceStateUpdate.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index bd9bfd1..33b2fa0 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -24,4 +24,4 @@ model Dictionary { read String @@unique([guildId, word]) -} \ No newline at end of file +} diff --git a/src/handlers/voiceStateUpdate.ts b/src/handlers/voiceStateUpdate.ts index d51f9ec..92d1bec 100644 --- a/src/handlers/voiceStateUpdate.ts +++ b/src/handlers/voiceStateUpdate.ts @@ -42,6 +42,7 @@ export default async ({ ) { if (data.guild_id && data.session_id && data.user_id) { adapters.get(data.guild_id)?.onVoiceStateUpdate(data); + if (!data.channel_id) { if (room) { await __catch([