PreFirstGatewayConnectEvent

Fired when JDA connects to the gateway for the first time.

Remember that at this point, the JDA instance is not fully initialized.

Listeners of this event can use the BLOCKING mode, which will prevent JDA from going any further until the listener returns, including from logging in other shards.

This makes this event suited for usages when you need to run logic after loading all services, and after the token was validated, but before JDA actual logs in the gateway and starts receiving events.

Properties

Link copied to clipboard
open override val context: BContext
Link copied to clipboard
val jda: JDA