Table of Contents

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

memberId ulong

The id of the member to get.

withMember bool

Whether to request the member object.

Returns

Task<DiscordThreadChannelMember>

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 DiscordMember

The member to get.

withMember bool

Whether to request the member object.

Returns

Task<DiscordThreadChannelMember>

Exceptions

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.