-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.. currentmodule:: mafic | ||
|
||
Events | ||
====== | ||
|
||
Classes | ||
------- | ||
|
||
.. attributetable:: WebSocketClosedEvent | ||
|
||
.. autoclass:: WebSocketClosedEvent | ||
|
||
.. attributetable:: TrackStartEvent | ||
|
||
.. autoclass:: TrackStartEvent | ||
|
||
.. attributetable:: TrackEndEvent | ||
|
||
.. autoclass:: TrackEndEvent | ||
|
||
.. attributetable:: TrackExceptionEvent | ||
|
||
.. autoclass:: TrackExceptionEvent | ||
|
||
.. attributetable:: TrackStuckEvent | ||
|
||
.. autoclass:: TrackStuckEvent | ||
|
||
Callbacks | ||
--------- | ||
|
||
.. function:: on_websocket_closed() | ||
|
||
Called when the websocket connection from Lavalink is closed to Discord. | ||
|
||
:param event: The event that was dispatched. | ||
:type event: :class:`WebSocketClosedEvent` | ||
|
||
.. function:: on_track_start() | ||
|
||
Called when a track starts playing. | ||
|
||
:param event: The event that was dispatched. | ||
:type event: :class:`TrackStartEvent` | ||
|
||
.. function:: on_track_end() | ||
|
||
Called when a track ends. | ||
|
||
:param event: The event that was dispatched. | ||
:type event: :class:`TrackEndEvent` | ||
|
||
.. function:: on_track_exception() | ||
|
||
Called when a track throws an exception. | ||
|
||
:param event: The event that was dispatched. | ||
:type event: :class:`TrackExceptionEvent` | ||
|
||
.. function:: on_track_stuck() | ||
|
||
Called when a track gets stuck. | ||
|
||
:param event: The event that was dispatched. | ||
:type event: :class:`TrackStuckEvent` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters