RequestGuildMembers
A representation of the Discord Request Guild Members command.
When connecting to a Gateway Discord will send members up to Identify.largeThreshold, any additional members can be requested via this command. Sending this command will result in a variable amount of GuildMembersChunk events being send until all requested members have been returned.
While usage of this command isn't strictly limited to privileged intents, certain combinations are:
Intent.GuildPresences is required to enable presences.
Intent.GuildMembers is required when setting the query to
""
and limit to0
.
Other notable behavior:
Requesting a query that is not empty (and not Optional.Missing) will coerce limit to a max of
100
.userIds can only contain a maximum of
100
ids.
Parameters
id of the guild on which to execute the command.
prefix to match usernames against. Use an empty string to match against all members.
maximum number of members to match against when using a query. Use 0
to request all members.
Whether GuildMembersChunkData.presences should be present in the response.
The ids of the user to match against.
A nonce to identify the GuildMembersChunkData.nonce responses.