Method SearchMembersAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
SearchMembersAsync(string, int?, CancellationToken)
Searches the current guild for members who's display name start with the specified name.
public Task<IReadOnlyList<DiscordMember>> SearchMembersAsync(string name, int? limit = 1, CancellationToken cancellationToken = default)
Parameters
namestringThe name to search for.
limitint?The maximum amount of members to return. Max 1000. Defaults to 1.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<IReadOnlyList<DiscordMember>>
The members found, if any.