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