parseVoiceServerUpdate method

VoiceServerUpdateEvent parseVoiceServerUpdate(
  1. Map<String, Object?> raw
)

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?,
  );
}