Method RequestMembersAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
RequestMembersAsync(string, int, bool?, IEnumerable<ulong>?, string?)
Requests that Discord send a list of guild members based on the specified arguments. This method will fire the GuildMembersChunked event.
If no arguments aside from presences and nonce are specified, this will request all guild members.
public Task RequestMembersAsync(string query = "", int limit = 0, bool? presences = null, IEnumerable<ulong>? userIds = null, string? nonce = null)
Parameters
querystringFilters the returned members based on what the username starts with. Either this or
userIdsmust not be null. Thelimitmust also be greater than 0 if this is specified.limitintTotal number of members to request. This must be greater than 0 if
queryis specified.presencesbool?Whether to include the Presences associated with the fetched members.
userIdsIEnumerable<ulong>Whether to limit the request to the specified user ids. Either this or
querymust not be null.noncestringThe unique string to identify the response.