Types

Link copied to clipboard
data class DiscordClose(val closeCode: VoiceGatewayCloseCode, val recoverable: Boolean) : Close

Discord closed the connection with a closeCode.

Link copied to clipboard

The gateway closed and will attempt to resume the session.

Link copied to clipboard

The Gateway has failed to establish a connection too many times and will not try to reconnect anymore. The user is free to manually connect again using VoiceGateway.start, otherwise all resources linked to the Gateway should free.

Link copied to clipboard
object Timeout : Close

The connection was closed because of a timeout, probably due to a loss of internet connection.

Link copied to clipboard
object UserClose : Close

The user closed the Gateway connection.