Table of Contents

Method GetMemberAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

GetMemberAsync(ulong, bool)

Gets a member of this guild by their user ID.

public Task<DiscordMember> GetMemberAsync(ulong userId, bool updateCache = false)

Parameters

userId ulong

ID of the member to get.

updateCache bool

Whether to always make a REST request and update the member cache.

Returns

Task<DiscordMember>

The requested member.

Exceptions

ServerErrorException

Thrown when Discord is unable to process the request.

NotFoundException

Thrown when the member does not exist in this guild.