Class GatewayBootstrap<O extends GatewayOptions>

  • Type Parameters:
    O - the configuration flavor supplied to the GatewayClient instances to be built.

    public class GatewayBootstrap<O extends GatewayOptions>
    extends Object
    Builder to create a shard group connecting to Discord Gateway to produce a GatewayDiscordClient. A shard group represents a set of shards for a given bot that will share some key resources like entity caching and event dispatching. Defaults to creating an automatic sharding group using all shards up to the recommended amount. Refer to each setter for more details about the default values for each configuration. Some of the commonly used ones are:

    One of the following methods must be subscribed to in order to begin establishing Discord Gateway connections:

    This bootstrap emits a result depending on the configuration of setAwaitConnections(boolean).