MembersBuilder

Builder used for configuring the bot's member-related options.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Whether to request the presences for the members that are requested from the guilds specified using the functions in this class.

Link copied to clipboard

Whether to lock when requesting members from guilds, preventing concurrent requests from being processed at once. This will slow down filling the cache with members, but may avoid hitting rate limits for larger bots.

Functions

Link copied to clipboard
fun all()

Request members for all guilds the bot is on.

Link copied to clipboard
fun fill(id: Snowflake): Boolean?
fun fill(id: String): Boolean?
fun fill(id: ULong): Boolean?

Add a guild ID to request members for.

@JvmName(name = "fillSnowflakes")
fun fill(ids: Collection<Snowflake>): Boolean?
@JvmName(name = "fillStrings")
fun fill(ids: Collection<String>): Boolean?
@JvmName(name = "fillLongs")
fun fill(ids: Collection<ULong>): Boolean?

Add a list of guild IDs to request members for.

Link copied to clipboard
fun none()

Request no members from guilds at all. This is the default behaviour.