MCPcopy Create free account

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

Functions307 in github.com/devoxin/Lavalink.py

↓ 47 callersMethodget
Gets a player from cache. Parameters ---------- guild_id: :class:`int` The guild_id associated with the
lavalink/playermanager.py:102
↓ 15 callersMethodrequest
(self, method: str, path: str, *, to: Type[str], trace: bool = ..., versioned: bool = ..., **kwargs)
lavalink/node.py:631
↓ 11 callersMethod_dispatch_event
Dispatches the given event to all registered hooks. Parameters ---------- event: :class:`Event` The even
lavalink/client.py:534
↓ 9 callersMethod__init__
(self, volume: float = 1.0)
lavalink/filters.py:51
↓ 8 callersMethodread_nullable_utf
.. _modified UTF: https://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8 Reads an optional UTF string from the stream. Internal
lavalink/dataio.py:130
↓ 8 callersMethodupdate_player
(self, *, guild_id: Union[str, int],
lavalink/node.py:372
↓ 7 callersMethodupdate
Updates the internal values to match those provided.
lavalink/abc.py:397
↓ 6 callersMethod_apply_filters
(self)
lavalink/player.py:616
↓ 6 callersMethod_read
(self, count: int)
lavalink/dataio.py:73
↓ 6 callersMethodwrite_utf
Writes a utf string to the stream. Parameters ---------- utf_string: :class:`str` The string to write.
lavalink/dataio.py:266
↓ 5 callersMethodadd
Adds a track to the queue. Parameters ---------- track: Union[:class:`AudioTrack`, :class:`DeferredAudioTrack`, Dict
lavalink/player.py:197
↓ 5 callersMethodvalues
Returns an iterator that yields only values.
lavalink/playermanager.py:78
↓ 4 callersMethod_write
(self, data)
lavalink/dataio.py:190
↓ 4 callersMethodfrom_str
(cls: Type[EnumT], other: str)
lavalink/server.py:78
↓ 4 callersMethodread_utf
Reads a UTF string from the stream. Returns ------- :class:`bytes`
lavalink/dataio.py:154
↓ 4 callersMethodvoice_update_handler
|coro| This function intercepts websocket data from your Discord library and forwards the relevant information on to Lavalink, which
lavalink/client.py:491
↓ 3 callersMethod_dispatch_voice_update
(self)
lavalink/abc.py:263
↓ 3 callersMethodadd_node
Shortcut for :func:`NodeManager.add_node`. Adds a node to Lavalink's node manager. Parameters ---------- ho
lavalink/client.py:308
↓ 3 callersMethodchange_node
|coro| Called when a node change is requested for the current player instance. Parameters ---------- node: :class:`N
lavalink/abc.py:281
↓ 3 callersMethodcleanup
(self)
lavalink/abc.py:228
↓ 3 callersMethodcreate
(cls, message: str, severity: Severity, cause: str, stacktrace: str = '')
lavalink/server.py:298
↓ 3 callersMethoddestroy
|coro| Destroys the transport and any underlying connections for this node. This will also cleanly close the websocket.
lavalink/node.py:190
↓ 3 callersMethoddestroy_player
|coro| Destroys a player on the node. It's recommended that you use :func:`PlayerManager.destroy` to destroy a player. Retur
lavalink/node.py:570
↓ 3 callersMethodget_tracks
|coro| Retrieves a list of results pertaining to the provided query. Parameters ---------- query: :class:`str`
lavalink/node.py:198
↓ 3 callersMethodnone
(cls)
lavalink/server.py:267
↓ 3 callersMethodread_boolean
Reads a bool from the stream. Returns ------- :class:`bool`
lavalink/dataio.py:86
↓ 3 callersMethodread_utfm
.. _modified UTF: https://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8 Reads a UTF string from the stream. This method is dif
lavalink/dataio.py:165
↓ 3 callersMethodremove
Removes a node. Make sure you have called :func:`Node.destroy` to close any resources used by this Node. Parameters
lavalink/nodemanager.py:145
↓ 3 callersMethodseek
|coro| Seeks to a given position in the track. Parameters ---------- position: :class:`int` The new posi
lavalink/player.py:400
↓ 3 callersMethodstop
|coro| Stops the player.
lavalink/player.py:322
↓ 3 callersMethodwrite_byte
Writes a single byte to the stream. Parameters ---------- byte: Any This can be anything ``BytesIO.write
lavalink/dataio.py:193
↓ 3 callersMethodwrite_long
Writes a long to the stream. Parameters ---------- long_value: :class:`int` The long to write.
lavalink/dataio.py:240
↓ 3 callersMethodwrite_nullable_utf
Writes an optional string to the stream. Parameters ---------- utf_string: Optional[:class:`str`] The op
lavalink/dataio.py:252
↓ 2 callersMethod__eq__
(self, other)
lavalink/__main__.py:53
↓ 2 callersMethod_connect
(self)
lavalink/transport.py:144
↓ 2 callersMethod_destroy
(self)
examples/music.py:103
↓ 2 callersFunction_join
(ctx: lightbulb.Context)
examples/hikari_music.py:79
↓ 2 callersFunction_write_track_common
(track: Dict[str, Any], writer: DataWriter)
lavalink/utils.py:155
↓ 2 callersMethodadd_event_hooks
Scans the provided class ``cls`` for functions decorated with :func:`listener`, and sets them up to process Lavalink events.
lavalink/client.py:201
↓ 2 callersMethodclose
|coro| Closes all active connections and frees any resources in use.
lavalink/client.py:159
↓ 2 callersMethodclose
|coro| Shuts down the websocket connection if there is one.
lavalink/transport.py:104
↓ 2 callersFunctiondownload
(dl_url, path)
lavalink/__main__.py:166
↓ 2 callersMethodempty
(cls, node)
lavalink/stats.py:138
↓ 2 callersMethodfind_ideal_node
Finds the best (least used) node in the given region, if applicable. Parameters ---------- region: Optional[:class:`
lavalink/nodemanager.py:205
↓ 2 callersMethodfinish
Finalizes the stream by writing the necessary flags, byte length etc. Returns ---------- :class:`bytes`
lavalink/dataio.py:284
↓ 2 callersMethodfrom_dict
(cls, mapping: dict)
lavalink/server.py:184
↓ 2 callersMethodhas_listeners
Check whether the client has any listeners for a specific event type.
lavalink/client.py:528
↓ 2 callersMethodload
|coro| Retrieves a base64 string that's playable by Lavalink. For example, you can use this method to search Lavalink for an identica
lavalink/abc.py:310
↓ 2 callersMethodload_item
|coro| Loads a track with the given query. Parameters ---------- client: :class:`Client` The Lavalink cl
lavalink/abc.py:347
↓ 2 callersMethodplay
|coro| Plays the given track. This method differs from :func:`BasePlayer.play_track` in that it contains additional logic to
lavalink/player.py:223
↓ 2 callersMethodread_byte
Reads a single byte from the stream. Returns ------- :class:`bytes`
lavalink/dataio.py:76
↓ 2 callersMethodread_long
Reads a long from the stream. Returns ------- :class:`int`
lavalink/dataio.py:119
↓ 2 callersMethodread_unsigned_short
Reads an unsigned short from the stream. Returns ------- :class:`int`
lavalink/dataio.py:97
↓ 2 callersMethodremove_filter
|coro| Removes a filter from the player, undoing any effects applied to the audio. Example ------- .. code:: python
lavalink/player.py:574
↓ 2 callersMethodwrite_boolean
Writes a bool to the stream. Parameters ---------- boolean: :class:`bool` The bool to write.
lavalink/dataio.py:204
↓ 1 callersMethod__gt__
(self, other)
lavalink/__main__.py:104
↓ 1 callersMethod__lt__
(self, other)
lavalink/__main__.py:71
↓ 1 callersMethod__real_dispatch
(self, event: Event, hooks: Sequence[Callable[[Event], Awaitable[Any]]])
lavalink/client.py:552
↓ 1 callersMethod_handle_event
Handles the event from Lavalink. Parameters ---------- data: :class:`dict` The data given from Lavalink.
lavalink/transport.py:294
↓ 1 callersMethod_handle_message
Handles the response from the websocket. Parameters ---------- data: Union[Dict[Any, Any], List[Any]] Th
lavalink/transport.py:250
↓ 1 callersMethod_handle_message_safe
(self, msg: aiohttp.WSMessage)
lavalink/transport.py:244
↓ 1 callersMethod_handle_node_disconnect
|coro| Called when a node is disconnected. Parameters ---------- node: :class:`Node` The node that has d
lavalink/nodemanager.py:251
↓ 1 callersMethod_handle_node_ready
(self, node: Node)
lavalink/nodemanager.py:235
↓ 1 callersMethod_listen
Listens for websocket messages.
lavalink/transport.py:205
↓ 1 callersFunction_read_track_common
Reads common fields between v1-3 AudioTracks. Returns ------- Tuple[str, str, int, str, bool, Optional[str]] A tuple contain
lavalink/utils.py:137
↓ 1 callersMethod_request
(self, method: str, path: str, to=None, trace: bool = False, versioned: bool = True, **kwargs)
lavalink/transport.py:381
↓ 1 callersMethod_send
Sends a payload to Lavalink. Parameters ---------- data: :class:`dict` The data sent to Lavalink.
lavalink/transport.py:354
↓ 1 callersMethod_voice_server_update
(self, data: VoiceServerUpdateData)
lavalink/abc.py:240
↓ 1 callersMethod_voice_state_update
(self, data: VoiceStateUpdateData)
lavalink/abc.py:249
↓ 1 callersMethodconnect
Attempts to establish a connection to Lavalink.
lavalink/transport.py:122
↓ 1 callersMethodconnect
Connect the bot to the voice channel and create a player_manager if it doesn't exist yet.
examples/music.py:74
↓ 1 callersMethoddisconnect
Disconnects the player from the voice channel and clears its queue.
examples/music.py:322
↓ 1 callersFunctiondisplay_help
()
lavalink/__main__.py:144
↓ 1 callersFunctiondownload_config
(arguments: Sequence[str], branch: str)
lavalink/__main__.py:335
↓ 1 callersFunctiondownload_jar
(arguments: Sequence[str])
lavalink/__main__.py:304
↓ 1 callersFunctionencode_track_v2
(track: Dict[str, Any], source_encoders: Mapping[str, Callable[[DataWriter, Dict[str, Any]
lavalink/utils.py:280
↓ 1 callersFunctionencode_track_v3
(track: Dict[str, Any], source_encoders: Mapping[str, Callable[[DataWriter, Dict[str, Any]
lavalink/utils.py:300
↓ 1 callersMethodfetch
Retrieves the related value from the stored user data. Parameters ---------- key: :class:`object` The ke
lavalink/player.py:161
↓ 1 callersFunctionformat_bytes
(length: float)
lavalink/__main__.py:155
↓ 1 callersMethodget_region
Returns a Lavalink.py-friendly region from a Discord voice server address. Parameters ---------- endpoint: :class:`s
lavalink/nodemanager.py:178
↓ 1 callersMethodget_version
|coro| Retrieves the version of this node. Returns ------- str The version of this Lavalink server.
lavalink/node.py:325
↓ 1 callersMethodhandle_event
|coro| Handles an :class:`Event` received directly from the websocket. Parameters ---------- event: :class:`Event`
lavalink/abc.py:85
↓ 1 callersFunctionmain
()
lavalink/__main__.py:384
↓ 1 callersMethodmay_start_next
Returns whether the next track may be started from this event. This is mostly used as a hint to determine whether the ``track_end_ev
lavalink/server.py:217
↓ 1 callersMethodnext
(self)
lavalink/backoff.py:42
↓ 1 callersMethodnode_unavailable
|coro| Called when a player's node becomes unavailable. Useful for changing player state before it's moved to another node.
lavalink/abc.py:272
↓ 1 callersMethodplay
Searches and plays a song from a given query.
examples/music.py:227
↓ 1 callersMethodplay_track
|coro| .. _player object: https://lavalink.dev/api/rest.html#Player Plays the given track. Warning -------
lavalink/abc.py:112
↓ 1 callersFunctionprint_info
(arguments: Sequence[str])
lavalink/__main__.py:348
↓ 1 callersFunctionread_chunk
(out, chunk_size=8192)
lavalink/__main__.py:191
↓ 1 callersMethodread_int
Reads an int from the stream. Returns ------- :class:`int`
lavalink/dataio.py:108
↓ 1 callersFunctionread_utfm
(utf_len: int, utf_bytes: bytes)
lavalink/utfm_codec.py:30
↓ 1 callersFunctionreport_progress
(cur, tot)
lavalink/__main__.py:171
↓ 1 callersFunctionselect_release
(non_draft: Sequence[Release])
lavalink/__main__.py:256
↓ 1 callersFunctionselect_release_unattended
(non_draft: Sequence[Release], version_selector: str)
lavalink/__main__.py:204
↓ 1 callersMethodserialize
Transforms the internal values into a dict matching the structure Lavalink expects. Example: .. code:: python
lavalink/abc.py:402
↓ 1 callersMethodset_filter
|coro| Applies the corresponding filter within Lavalink. This will overwrite the filter if it's already applied. Example
lavalink/player.py:447
↓ 1 callersFunctionsetup
(bot)
examples/music.py:338
↓ 1 callersMethodstore
Stores custom user data. Parameters ---------- key: :class:`object` The key of the object to store.
lavalink/player.py:148
↓ 1 callersFunctiontest_flake8
()
run_tests.py:9
next →1–100 of 307, ranked by callers