Reference#
Pool#
Node#
Player#
- class discord.ext.lava.Player(*, link: Link)#
-
- await connect(*, timeout: float | None = None, reconnect: bool | None = None, self_deaf: bool = False, self_mute: bool = False) None#
-
An abstract method called when the client initiates the connection request.
When a connection is requested initially, the library calls the constructor under
__init__and then callsconnect(). Ifconnect()fails at some point thendisconnect()is called.Within this method, to start the voice connection flow it is recommended to use
Guild.change_voice_state()to start the flow. After which,on_voice_server_update()andon_voice_state_update()will be called. The order that these two are called is unspecified.
- await disconnect(*, force: bool = False) None#
-
An abstract method called when the client terminates the connection.
See
cleanup().- Parameters:
force (
bool) – Whether the disconnection was forced.
Queue#
Objects#
Track#
Collection#
Search#
Events#
TrackStart#
TrackEnd#
TrackStuck#
TrackException#
WebsocketOpen#
WebsocketClosed#
Filters#
ChannelMix#
- class discord.ext.lava.ChannelMix(*, left_to_left: float = 1.0, left_to_right: float = 0.0, right_to_left: float = 0.0, right_to_right: float = 1.0)#
- property data: ChannelMixData#
- classmethod mono() ChannelMix#
- classmethod switch() ChannelMix#
- classmethod only_left() ChannelMix#
- classmethod full_left() ChannelMix#
- classmethod only_right() ChannelMix#
- classmethod full_right() ChannelMix#
Distortion#
Equalizer#
Karaoke#
LowPass#
Rotation#
Timescale#
Tremolo#
Vibrato#
Volume#
Filter#
- class discord.ext.lava.Filter(filter: Filter | None = None, equalizer: Equalizer | None = None, karaoke: Karaoke | None = None, timescale: Timescale | None = None, tremolo: Tremolo | None = None, vibrato: Vibrato | None = None, rotation: Rotation | None = None, distortion: Distortion | None = None, channel_mix: ChannelMix | None = None, low_pass: LowPass | None = None)#
- property data: FiltersData#
Enums#
Provider#
QueueLoopMode#
Source#
Exceptions#
LavaError#
- exception discord.ext.lava.LavaError#
NodeAlreadyExists#
NodeNotFound#
NoNodesConnected#
NodeAlreadyConnected#
NodeConnectionError#
InvalidPassword#
NodeNotConnected#
HTTPError#
NoResultsFound#
SearchFailed#
- exception discord.ext.lava.SearchFailed(exception: ExceptionData)#
Utils#
SPOTIFY_URL_REGEX#
- discord.ext.lava.SPOTIFY_URL_REGEX#
A regex that matches spotify URLs for tracks, albums, playlists, and artists.
MISSING#
- discord.ext.lava.MISSING#
A sentinel value that is used to indicate a missing value with distinction from None.