Table of Contents

Method TryGetMember

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

TryGetMember(ulong, out DiscordMember?)

Gets a member of this guild by their user ID.

public bool TryGetMember(ulong userId, out DiscordMember? member)

Parameters

userId ulong

ID of the member to get.

member DiscordMember

The requested member if found, otherwise null.

Returns

bool

Whether the member was found.

Exceptions

ServerErrorException

Thrown when Discord is unable to process the request.