AutoGateway
class AutoGateway(token: String, intents: GatewayIntents = GatewayIntents.NON_PRIVILEGED, restClient: RestClient, eventDispatcher: EventDispatcher, sessionDispatcher: CoroutineDispatcher = Dispatchers.Default)(source)
A utility class for automatically creating and managing sharded gateway sessions
Constructors
Link copied to clipboard
constructor(token: String, intents: GatewayIntents = GatewayIntents.NON_PRIVILEGED, restClient: RestClient, eventDispatcher: EventDispatcher, sessionDispatcher: CoroutineDispatcher = Dispatchers.Default)
Properties
Functions
Link copied to clipboard
suspend fun setStatus(status: UserStatus, isAfk: Boolean = false, idleTime: Int? = null, activity: UserStatusActivity? = null)
Sets a status message on all gateway sessions
Link copied to clipboard
Starts the gateway sessions if they aren't already running