fix(bot): Remove handlers payload checks (#4374)

To remove the check from VOICE_STATE_UPDATE we need to wait for #4372 to get merged
This commit is contained in:
Fleny
2025-08-17 09:16:03 +02:00
committed by GitHub
parent 0b073a151d
commit b47feae4fa
2 changed files with 1 additions and 1 deletions
@@ -5,7 +5,6 @@ export async function handleChannelDelete(bot: Bot, data: DiscordGatewayPayload)
if (!bot.events.channelDelete) return
const payload = data.d as DiscordChannel
if (!payload.guild_id) return
bot.events.channelDelete(
bot.transformers.channel(bot, {
@@ -5,6 +5,7 @@ export async function handleVoiceStateUpdate(bot: Bot, data: DiscordGatewayPaylo
if (!bot.events.voiceStateUpdate) return
const payload = data.d as DiscordVoiceState
// TODO: We have to wait for #4372 to get merged to remove this check...
if (!payload.guild_id) return
const guildId = bot.transformers.snowflake(payload.guild_id)