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