Skip to content

Commit

Permalink
docs: stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
viztea committed Jul 13, 2024
1 parent 93102f8 commit e2f9ac2
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions docs/api/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Dispatched every x seconds (configurable in `application.yml`) with the current
```json
{
"op": "playerUpdate",
"guildId": "...",
"guildId": "1082302532421943407",
"state": {
"time": 1500467109,
"position": 60000,
Expand Down Expand Up @@ -243,7 +243,7 @@ Dispatched when a track starts playing.
{
"op": "event",
"type": "TrackStartEvent",
"guildId": "...",
"guildId": "1082302532421943407",
"track": {
"encoded": "QAAAjQIAJVJpY2sgQXN0bGV5IC0gTmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAADlJpY2tBc3RsZXlWRVZPAAAAAAADPCAAC2RRdzR3OVdnWGNRAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9ZFF3NHc5V2dYY1EAB3lvdXR1YmUAAAAAAAAAAA==",
"info": {
Expand All @@ -259,7 +259,8 @@ Dispatched when a track starts playing.
"isrc": null,
"sourceName": "youtube"
},
"pluginInfo": {}
"pluginInfo": {},
"userData": {}
}
}
```
Expand Down Expand Up @@ -294,7 +295,7 @@ Dispatched when a track ends.
{
"op": "event",
"type": "TrackEndEvent",
"guildId": "...",
"guildId": "1082302532421943407",
"track": {
"encoded": "QAAAjQIAJVJpY2sgQXN0bGV5IC0gTmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAADlJpY2tBc3RsZXlWRVZPAAAAAAADPCAAC2RRdzR3OVdnWGNRAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9ZFF3NHc5V2dYY1EAB3lvdXR1YmUAAAAAAAAAAA==",
"info": {
Expand All @@ -310,7 +311,8 @@ Dispatched when a track ends.
"isrc": null,
"sourceName": "youtube"
},
"pluginInfo": {}
"pluginInfo": {},
"userData": {}
},
"reason": "finished"
}
Expand Down Expand Up @@ -352,7 +354,7 @@ Dispatched when a track throws an exception.
{
"op": "event",
"type": "TrackExceptionEvent",
"guildId": "...",
"guildId": "1082302532421943407",
"track": {
"encoded": "QAAAjQIAJVJpY2sgQXN0bGV5IC0gTmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAADlJpY2tBc3RsZXlWRVZPAAAAAAADPCAAC2RRdzR3OVdnWGNRAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9ZFF3NHc5V2dYY1EAB3lvdXR1YmUAAAAAAAAAAA==",
"info": {
Expand All @@ -368,7 +370,8 @@ Dispatched when a track throws an exception.
"isrc": null,
"sourceName": "youtube"
},
"pluginInfo": {}
"pluginInfo": {},
"userData": {}
},
"exception": {
"message": "...",
Expand Down Expand Up @@ -398,7 +401,7 @@ Dispatched when a track gets stuck while playing.
{
"op": "event",
"type": "TrackStuckEvent",
"guildId": "...",
"guildId": "1082302532421943407",
"track": {
"encoded": "QAAAjQIAJVJpY2sgQXN0bGV5IC0gTmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAADlJpY2tBc3RsZXlWRVZPAAAAAAADPCAAC2RRdzR3OVdnWGNRAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9ZFF3NHc5V2dYY1EAB3lvdXR1YmUAAAAAAAAAAA==",
"info": {
Expand All @@ -414,7 +417,8 @@ Dispatched when a track gets stuck while playing.
"isrc": null,
"sourceName": "youtube"
},
"pluginInfo": {}
"pluginInfo": {},
"userData": {}
},
"thresholdMs": 123456789
}
Expand Down Expand Up @@ -444,7 +448,7 @@ See the [Discord Docs](https://discord.com/developers/docs/topics/opcodes-and-st
{
"op": "event",
"type": "WebSocketClosedEvent",
"guildId": "...",
"guildId": "1082302532421943407",
"code": 4006,
"reason": "Your session is no longer valid.",
"byRemote": true
Expand Down

0 comments on commit e2f9ac2

Please sign in to comment.