Table of Contents

Method GetMembersAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetMembersAsync(bool, ulong?, int?)

Gets the members of a thread. Needs the GuildMembers intent.

public Task<IReadOnlyList<DiscordThreadChannelMember>> GetMembersAsync(bool withMember = false, ulong? after = null, int? limit = null)

Parameters

withMember bool

Whether to request the member object. (If set to true, will paginate the result)

after ulong?

Request all members after the specified. (Currently only utilized if withMember is set to true)

limit int?

The amount of members to fetch. (Currently only utilized if withMember is set to true)

Returns

Task<IReadOnlyList<DiscordThreadChannelMember>>

Exceptions

NotFoundException

Thrown when the thread does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.