Table of Contents

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

name string

The name to search for.

limit int?

The maximum amount of members to return. Max 1000. Defaults to 1.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<IReadOnlyList<DiscordMember>>

The members found, if any.