LyricsLineEvent
The LyricsLineEvent is sent periodically by the server to the client during playback if the player is subscribed to synchronized lyrics. It indicates which line of the lyrics should be active at the current moment.
Structure
Section titled “Structure”| Field | Type | Description |
|---|---|---|
op | string | Always event |
type | string | Always LyricsLineEvent |
guildId | string | The Discord guild ID |
lineIndex | number | The 0-indexed index of the current line |
line | object | The Lyrics Line object |
skipped | boolean | true if this line was reached by seeking or skipping |
Example Payload
Section titled “Example Payload”{ "op": "event", "type": "LyricsLineEvent", "guildId": "1234567890", "lineIndex": 5, "line": { "timestamp": 45000, "duration": 2000, "line": "We're going to the moon!" }, "skipped": false}