Table of Contents

Method SearchMembersAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

SearchMembersAsync(ulong, string, int?)

Searches the given guild for members who's display name start with the specified name.

public Task<IReadOnlyList<DiscordMember>> SearchMembersAsync(ulong guildId, string name, int? limit = 1)

Parameters

guildId ulong

The ID of the guild to search.

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.