Table of Contents

Method GetMemberAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetMemberAsync(ulong, bool)

Gets a member of this guild by their user ID.

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

Parameters

userId ulong

ID of the member to get.

fetch bool

Whether to fetch the member from the api prior to cache.

Returns

Task<DiscordMember>

The requested member.

Exceptions

NotFoundException

Thrown when the member does not exist in this guild.

ServerErrorException

Thrown when Discord is unable to process the request.