public class MemberChunkEvent extends GuildEvent
By default, all members in all connected guilds are requested on startup.
This event is dispatched by Discord.
Constructor and Description |
---|
MemberChunkEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
long guildId,
Set<Member> members,
int chunkIndex,
int chunkCount,
List<Snowflake> notFound,
String nonce) |
Modifier and Type | Method and Description |
---|---|
int |
getChunkCount()
Gets the total number of expected chunks for this response.
|
int |
getChunkIndex()
Gets the chunk index in the expected chunks for this response (0 <= chunk_index < chunk_count).
|
Mono<Guild> |
getGuild()
Requests to retrieve the
Guild involved in the event. |
Snowflake |
getGuildId()
|
Set<Member> |
getMembers()
Gets a list of
Members that have been streamed to the client in this event. |
Optional<String> |
getNonce()
Gets the nonce used in the Guild Members Request, if present.
|
List<Snowflake> |
getNotFound()
Gets invalid id passed to `REQUEST_GUILD_MEMBERS`, if any.
|
String |
toString() |
getClient, getShardInfo
public Set<Member> getMembers()
Members
that have been streamed to the client in this event.
This may not contain all Members
of the Guild
.Members
streamed to the client in this event.public int getChunkIndex()
public int getChunkCount()
public List<Snowflake> getNotFound()
public Optional<String> getNonce()