Method GetMemberAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetMemberAsync(ulong, bool)
Gets a member in this thread.
public Task<DiscordThreadChannelMember> GetMemberAsync(ulong memberId, bool withMember = false)
Parameters
Returns
Exceptions
- NotFoundException
Thrown when the member is not part of the thread.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.
GetMemberAsync(DiscordMember, bool)
Gets a member in this thread.
public Task<DiscordThreadChannelMember> GetMemberAsync(DiscordMember member, bool withMember = false)
Parameters
member
DiscordMemberThe member to get.
withMember
boolWhether to request the member object.
Returns
Exceptions
- NotFoundException
Thrown when the member is not part of the thread.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.