GatewaySession

class GatewaySession(token: String, gatewayBotUrl: GatewayBotUrl, intents: GatewayIntents, shardCount: Int = 0, shardNumber: Int = 0, eventDispatcher: EventDispatcher)(source)

Constructors

Link copied to clipboard
constructor(token: String, gatewayBotUrl: GatewayBotUrl, intents: GatewayIntents, shardCount: Int = 0, shardNumber: Int = 0, eventDispatcher: EventDispatcher)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun closeSession()
Link copied to clipboard
suspend fun restartConnection()
Link copied to clipboard
suspend fun send(gatewayMessage: GatewayMessage)
Link copied to clipboard
suspend fun setStatus(status: UserStatus, isAfk: Boolean = false, idleTime: Int? = null, activity: UserStatusActivity? = null)

Sets the user status in Discord.

Link copied to clipboard
suspend fun startSession(sessionId: String? = null, sequenceNumber: Int? = null)