MCPcopy Create free account

hub / github.com/devoxin/Lavalink.py / functions

Functions307 in github.com/devoxin/Lavalink.py

Methoddestroy
|coro| Closes the WebSocket gracefully, and stops any further reconnecting. Useful when needing to remove a node.
lavalink/transport.py:135
Methoddestroy
|coro| Destroys the current player instance. Shortcut for :func:`PlayerManager.destroy`.
lavalink/abc.py:231
Methoddisconnect
Handles the disconnect. Cleans up running player and leaves the voice client.
examples/music.py:83
Methodempty
(cls)
lavalink/server.py:338
Functionencode_track
Encodes a track dict into a base64 string, readable by the Lavalink server. A track should have *at least* the following keys: ``title``
lavalink/utils.py:231
Functionexact_version
(release: Release)
lavalink/__main__.py:208
Methodfind_all
Returns a list of players that match the given predicate. Parameters ---------- predicate: Optional[Callable[[:class
lavalink/playermanager.py:82
Functionformat_time
Formats the given time into HH:MM:SS. Parameters ---------- time: :class:`int` The time in milliseconds. Returns --
lavalink/utils.py:97
Methodfrom_dict
(cls, mapping: Dict[str, Any])
lavalink/server.py:263
Methodfrom_dict
(cls, mapping: dict)
lavalink/server.py:360
Methodfrom_error
(cls, error: LoadResultError)
lavalink/server.py:356
Methodfrom_playlist
(cls, tracks: Sequence[Union[AudioTrack, 'DeferredAudioTrack']], playlist_info: Optional[PlaylistInfo] = None,
lavalink/server.py:351
Methodfrom_search
(cls, tracks: Sequence[Union[AudioTrack, 'DeferredAudioTrack']], playlist_info: Optional[PlaylistInfo] = None,
lavalink/server.py:342
Methodfrom_track
(cls, track: Union[AudioTrack, 'DeferredAudioTrack'], plugin_info: Optional[Dict[str, Any]] = None)
lavalink/server.py:347
Methodget_filter
Returns the corresponding filter, if it's enabled. Example ------- .. code:: python from lavalink.filte
lavalink/player.py:526
Methodget_info
|coro| Retrieves information about this node. Returns ------- :class:`RawInfo` A raw response containing
lavalink/node.py:301
Methodget_local_tracks
|coro| Searches :attr:`sources` registered to this client for the given query. Parameters ---------- query: :class:`
lavalink/client.py:350
Methodget_nodes_by_region
Get a list of nodes by their region. This does not account for node availability, so the nodes returned could be either avail
lavalink/nodemanager.py:158
Methodget_player
|coro| Retrieves a player from the node. This returns raw data, to retrieve a player you can interact with, use :func:`PlayerManager.
lavalink/node.py:337
Methodget_players
|coro| Retrieves a list of players from the node. This returns raw data, to retrieve players you can interact with, use :attr:`player
lavalink/node.py:354
Methodget_rest_latency
|coro| Measures the REST latency for this node. This simply calls :func:`get_version` but measures the time between when the request
lavalink/node.py:142
Methodget_routeplanner_status
|coro| Retrieves the status of the target node's routeplanner. Returns ------- Optional[:class:`RawRouteplanner`]
lavalink/node.py:248
Methodget_source
Gets a registered source by the given name. Parameters ---------- source_name: :class:`str` The name of
lavalink/client.py:291
Methodget_stats
|coro| Retrieves statistics about this node. Returns ------- :class:`RawStats` A raw response containing
lavalink/node.py:313
Methodget_tracks
|coro| Retrieves a list of results pertaining to the provided query. If ``check_local`` is set to ``True`` and any of the sources re
lavalink/client.py:372
Functiongt
(release: Release)
lavalink/__main__.py:223
Functiongte
(release: Release)
lavalink/__main__.py:213
Methodhandle_event
Handles the given event as necessary. Parameters ---------- event: :class:`Event` The event to handle.
lavalink/player.py:619
Methodhttp_uri
Returns a 'base' URI pointing to the node's address and port, also factoring in SSL.
lavalink/transport.py:100
Functioninit
Add node to bot on ready
examples/hikari_music.py:34
Methodis_connected
Returns whether the player is connected to a voicechannel or not.
lavalink/player.py:130
Methodis_playing
Returns the player's track state.
lavalink/player.py:125
Functionjoin
Connect the bot to the voice channel the user is currently in and create a player_manager if it doesn't exist yet.
examples/hikari_music.py:98
Functionleave
Leaves the voice channel the bot is in, clearing the queue.
examples/hikari_music.py:117
Functionlistener
Marks this function as an event listener for Lavalink.py. This **must** be used on class methods, and you must ensure that you register d
lavalink/__init__.py:28
Functionload
(bot: lightbulb.BotApp)
examples/hikari_music.py:193
Methodload
(self, client)
examples/custom_source.py:14
Methodload_item
(self, client, query: str)
examples/custom_source.py:32
Methodlowpass
Sets the strength of the low pass filter.
examples/music.py:288
Functionlte
(release: Release)
lavalink/__main__.py:218
Methodmark
Marks the current position of the buffer to allow rewinding.
lavalink/dataio.py:51
Methodnode_unavailable
|coro| Called when a player's node becomes unavailable. Useful for changing player state before it's moved to another node.
lavalink/player.py:652
Methodnodes
Convenience shortcut for :attr:`NodeManager.nodes`.
lavalink/client.py:127
Methodon_queue_end
(self, event: QueueEndEvent)
examples/music.py:218
Methodon_track_start
(self, event: TrackStartEvent)
examples/music.py:204
Methodon_voice_server_update
(self, data)
examples/music.py:47
Methodon_voice_state_update
(self, data)
examples/music.py:56
Functionparse_time
Parses the given time into days, hours, minutes and seconds. Useful for formatting time yourself. Parameters ---------- time: :c
lavalink/utils.py:116
Methodpenalty
Returns the load-balancing penalty for this node.
lavalink/node.py:123
Functionplay
Searches the query on youtube, or adds the URL to the queue.
examples/hikari_music.py:138
Methodplayers
Convenience shortcut for :attr:`PlayerManager.players`.
lavalink/client.py:134
Methodplayers
Returns a list of all players on this node. Returns ------- Sequence[:class:`BasePlayer`]
lavalink/node.py:112
Methodposition
Returns the track's elapsed playback time in milliseconds, adjusted for Lavalink stat interval.
lavalink/player.py:135
Methodqueue_finish
(self, event: lavalink.QueueEndEvent)
examples/hikari_music.py:29
Methodregister_source
Registers a :class:`Source` that Lavalink.py will use for looking up tracks. Parameters ---------- source: :class:`S
lavalink/client.py:277
Methodremaining
The amount of bytes left to be read.
lavalink/dataio.py:45
Methodremove
Removes a player from the internal cache. Parameters ---------- guild_id: :class:`int` The player to rem
lavalink/playermanager.py:119
Methodremove_event_hooks
Removes the given hooks from the event hook registry. Parameters ---------- events: Sequence[:class:`Event`]
lavalink/client.py:237
Methodremove_filters
|coro| Removes multiple filters from the player, undoing any effects applied to the audio. This is similar to :func:`remove_filter` b
lavalink/player.py:560
Methodremove_node
Removes a node. Make sure you have called :func:`Node.destroy` to close any resources used by this Node. .. deprecated:: 5.
lavalink/nodemanager.py:128
Methodrequester
(self)
lavalink/server.py:199
Methodreset
(self)
lavalink/backoff.py:47
Methodrewind
Rewinds the buffer back to its marked position. If a position has not been marked, this will raise ``IOError``. After rewind
lavalink/dataio.py:57
Methodrouteplanner_free_address
|coro| Frees up the provided IP address in the target node's routeplanner. Parameters ---------- address: :class:`st
lavalink/node.py:266
Methodrouteplanner_free_all_failing
|coro| Frees up all IP addresses in the target node that have been marked as failing. Returns ------- :class:`bool`
lavalink/node.py:286
Methodselected_track
Convenience method for returning the selected track using :attr:`PlaylistInfo.selected_track`. This could be ``None`` if :at
lavalink/server.py:385
Methodserialize
(self)
lavalink/filters.py:78
Methodserialize
(self)
lavalink/filters.py:160
Methodserialize
(self)
lavalink/filters.py:254
Methodserialize
(self)
lavalink/filters.py:342
Methodserialize
(self)
lavalink/filters.py:402
Methodserialize
(self)
lavalink/filters.py:462
Methodserialize
(self)
lavalink/filters.py:498
Methodserialize
(self)
lavalink/filters.py:534
Methodserialize
(self)
lavalink/filters.py:609
Methodserialize
(self)
lavalink/filters.py:672
Methodsession_id
The session ID for this node. Could be ``None`` if a ready event has not yet been received from the server.
lavalink/node.py:85
Methodset_filters
|coro| This sets multiple filters at once. Applies the corresponding filters within Lavalink. This will overwrite any identi
lavalink/player.py:415
Methodset_loop
Sets whether the player loops between a single track, queue or none. 0 = off, 1 = single track, 2 = queue. Parameters
lavalink/player.py:342
Methodset_pause
|coro| Sets the player's paused state. Parameters ---------- pause: :class:`bool` Whether to pause the p
lavalink/player.py:369
Methodset_request_tracebacks
Enables or disables request tracebacks for debugging purposes. This applies to all nodes managed by this client instance. For
lavalink/client.py:140
Methodset_request_tracebacks
Enables or disables request tracebacks for this node. When enabled, this will return any error traces in responses if an error occurs.
lavalink/node.py:130
Methodset_shuffle
Sets the player's shuffle state. Parameters ---------- shuffle: :class:`bool` Whether to shuffle the pla
lavalink/player.py:358
Methodset_volume
|coro| Sets the player's volume Note ---- A limit of 1000 is imposed by Lavalink. Parameters ------
lavalink/player.py:382
Methodskip
|coro| Plays the next track in the queue, if any. Warning ------- Multiple calls to this method within a short timef
lavalink/player.py:330
Methodstream
Property indicating whether this track is a stream. .. deprecated:: 5.3.0 To be consistent with attribute naming, this p
lavalink/server.py:188
Functiontimestamp_to_millis
Converts a timestamp such as 03:28 or 02:15:53 to milliseconds. Example ------- .. code:: python await player.play(track, s
lavalink/utils.py:50
Methodtrack_end
(self, event: lavalink.TrackEndEvent)
examples/hikari_music.py:21
Methodtrack_exception
(self, event: lavalink.TrackExceptionEvent)
examples/hikari_music.py:25
Methodtrack_start
(self, event: lavalink.TrackStartEvent)
examples/hikari_music.py:17
Methodupdate
Modifies the player volume. This uses LavaDSP's volume filter, rather than Lavaplayer's native volume changer. Note
lavalink/filters.py:54
Methodupdate
(self, *, bands: Sequence[Tuple[int, float]])
lavalink/filters.py:91
Methodupdate
(self, *, level: float)
lavalink/filters.py:174
Methodupdate
(self, *, speed: float)
lavalink/filters.py:266
Methodupdate
(self, *, frequency: float)
lavalink/filters.py:354
Methodupdate
(self, *, frequency: float)
lavalink/filters.py:414
Methodupdate
Note ---- The limits are: 0 ≤ rotation_hz Parameters ---------- rotation_hz: :class:`fl
lavalink/filters.py:474
Methodupdate
Note ---- The limits are: 0 ≤ leftToLeft ≤ 1.0 0 ≤ leftToRight ≤ 1.0 0 ≤ rightToLeft ≤
lavalink/filters.py:548
Methodupdate
Parameters ---------- sin_offset: :class:`float` The sin offset. sin_scale: :class:`float` Th
lavalink/filters.py:623
Methodupdate_filter
|coro| Updates a filter using the upsert method; if the filter exists within the player, its values will be updated; if the f
lavalink/player.py:482
← previousnext →201–300 of 307, ranked by callers