mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user