![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
Voice websocket close codes. More...
#include <VoiceConnection.hpp>
Public Types | |
enum class | voice_websocket_close_code : uint16_t { unset = 1 << 0 , Normal_Close = 1 << 1 , Unknown_Opcode = 1 << 2 , Failed_To_Decode = 1 << 3 , Not_Authenticated = 1 << 4 , Authentication_Failed = 1 << 5 , Already_Authenticated = 1 << 6 , Session_No_Longer_Valid = 1 << 7 , Session_Timeout = 1 << 8 , Server_Not_Found = 1 << 9 , Unknown_Protocol = 1 << 10 , disconnected = 1 << 11 , Voice_Server_Crashed = 1 << 12 , Unknown_Encryption_Mode = 1 << 13 } |
Voice websocket close codes. More... | |
|
strong |
Enumerator | |
---|---|
unset | Unset. |
Normal_Close | Normal close. |
Unknown_Opcode | You sent an invalid opcode. |
Failed_To_Decode | You sent an invalid payload in your identifying to the gateway. |
Not_Authenticated | You sent a payload before identifying with the gateway. |
Authentication_Failed | the token you sent in your identify payload is incorrect. |
Already_Authenticated | you sent more than one identify payload. stahp. |
Session_No_Longer_Valid | Your session is no longer valid. |
Session_Timeout | Your session has timed out. |
Server_Not_Found | We can't find the server you're trying to connect to. |
Unknown_Protocol | We didn't recognize the protocol you sent. |
disconnected | channel_data was deleted, you were kicked, voice server changed, or the main gateway session was dropped. should not reconnect. |
Voice_Server_Crashed | The server crashed. our bad! try resuming. |
Unknown_Encryption_Mode | We didn't recognize your encryption. |
Definition at line 47 of file VoiceConnection.hpp.