Table of Contents

Method SearchMembersAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

SearchMembersAsync(string, int?)

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)

Parameters

name string

The name to search for.

limit int?

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

Returns

Task<IReadOnlyList<DiscordMember>>

The members found, if any.