parseVoiceServerUpdate method
Parse a VoiceServerUpdateEvent from raw
.
Implementation
VoiceServerUpdateEvent parseVoiceServerUpdate(Map<String, Object?> raw) {
return VoiceServerUpdateEvent(
gateway: this,
token: raw['token'] as String,
guildId: Snowflake.parse(raw['guild_id']!),
endpoint: raw['endpoint'] as String?,
);
}