mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
fix: VoiceState#member is not nullable (#1018)
This reverts commit 7750f8f467.
This commit is contained in:
@@ -9,9 +9,6 @@ export async function handleVoiceStateUpdate(data: DiscordGatewayPayload) {
|
||||
const payload = data.d as VoiceState;
|
||||
if (!payload.guildId) return;
|
||||
|
||||
// The "member" field in the payload is `null` if the user is in a live stage but not in the guild.
|
||||
if (payload.member === null) return eventHandlers.voiceLurkerJoin?.(payload);
|
||||
|
||||
const guild = await cacheHandlers.get("guilds", snowflakeToBigint(payload.guildId));
|
||||
if (!guild) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user