GatewayConfigurationBuilder

class GatewayConfigurationBuilder(val token: String, var name: String = "Kord", var shard: DiscordShard = DiscordShard(0, 1), var presence: DiscordPresence? = null, var threshold: Int = 250, var intents: Intents = Intents.NON_PRIVILEGED)(source)

Constructors

Link copied to clipboard
constructor(token: String, name: String = "Kord", shard: DiscordShard = DiscordShard(0, 1), presence: DiscordPresence? = null, threshold: Int = 250, intents: Intents = Intents.NON_PRIVILEGED)

Properties

Link copied to clipboard
Link copied to clipboard

The name of the library.

Link copied to clipboard

The presence the bot should show on login.

Link copied to clipboard

The shard the gateway will connect to.

Link copied to clipboard

A value between 50 and 250, representing the maximum amount of members in a guild before the gateway will stop sending info on offline members.

Link copied to clipboard

The token of the bot.

Functions

Link copied to clipboard

Returns an immutable version of this builder.

Link copied to clipboard
inline fun presence(builder: PresenceBuilder.() -> Unit)

Calls the builder on a new PresenceBuilder and assigns the result to presence.