VoiceManager - JohnnyMorganz/discordia-lavalink GitHub Wiki

Constructor:

Call the VoiceManager with your client and node settings Node settings:

{
	host = string,
	port = number,
	password = string,
	reconnectInterval? = number
}

VoiceManager(client, nodes)


Properties

VoiceManager.api

Property to retrieve the API for Lavalink

Methods

VoiceManager:join(channel, host?)

Join a GuildVoiceChannel You can provide a specific host, otherwise the first host will be used

Returns: Player

VoiceManager:leave(guildOrVoiceChannel)

Leave a VoiceChannel You can provide a Guild or a GuildVoiceChannel to leave

Returns: boolean

VoiceManager:getPlayer(guildOrVoiceChannel)

Get a Player for a specific Guild You can provide a Guild or a GuildVoiceChannel

Returns: Player | nil