Skip to main content
Go to Latest
File
import { Bot } from "../../bot.ts";import { DiscordGatewayPayload, DiscordVoiceServerUpdate } from "../../types/discord.ts";
export async function handleVoiceServerUpdate(bot: Bot, data: DiscordGatewayPayload) { const payload = data.d as DiscordVoiceServerUpdate;
bot.events.voiceServerUpdate(bot, { token: payload.token, guildId: bot.transformers.snowflake(payload.guild_id), endpoint: payload.endpoint ?? undefined, });}