class Discordrb::Events::VoiceServerUpdateEvent

Event raised when a server’s voice server is updating. Sent when initially connecting to voice and when a voice instance fails over to a new server. This event is exposed for use with library agnostic interfaces like telecom and lavalink.

Attributes

endpoint[R]

@return [String] The voice server host.

server[R]

@return [Server] The server this update is for.

token[R]

@return [String] The voice connection token

Public Class Methods

new(data, bot) click to toggle source
# File lib/discordrb/events/voice_server_update.rb, line 22
def initialize(data, bot)
  @bot = bot

  @token = data['token']
  @endpoint = data['endpoint']
  @server = bot.server(data['guild_id'])
end