Table of Contents

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

memberId ulong

The id of the member to get.

withMember bool

Whether to request the member object.

Returns

Task<DiscordThreadChannelMember>

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 DiscordMember

The member to get.

withMember bool

Whether to request the member object.

Returns

Task<DiscordThreadChannelMember>

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.