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
ulongID of the member to get.
member
DiscordMemberThe requested member if found, otherwise null.
Returns
- bool
Whether the member was found.
Exceptions
- ServerErrorException
Thrown when Discord is unable to process the request.