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
ulongID of the member to get.
updateCache
boolWhether 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.