Skip to content

Commit

Permalink
Voice Server Update endpoint is nullable (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadorc committed Apr 5, 2021
1 parent db1fa79 commit e887382
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/topics/Gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -1195,13 +1195,16 @@ Sent when someone joins/leaves/moves voice channels. Inner payload is a [voice s

Sent when a guild's voice server is updated. This is sent when initially connecting to voice, and when the current voice instance fails over to a new server.

> warn
> A null endpoint means that the voice server allocated has gone away and is trying to be reallocated. You should attempt to disconnect from the currently connected voice server, and not attempt to reconnect until a new voice server is allocated.
###### Voice Server Update Event Fields

| Field | Type | Description |
|----------|-----------|-------------------------------------------|
| token | string | voice connection token |
| guild_id | snowflake | the guild this voice server update is for |
| endpoint | string | the voice server host |
| endpoint | ?string | the voice server host |

###### Example Voice Server Update Payload

Expand Down

0 comments on commit e887382

Please sign in to comment.