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([