Table of Contents

Method GetJoinedPrivateArchivedThreadsAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetJoinedPrivateArchivedThreadsAsync(ulong?, int?, CancellationToken)

Gets joined archived private threads. Can contain more threads. If the result's value 'HasMore' is true, you need to recall this function to get older threads.

public Task<DiscordThreadResult> GetJoinedPrivateArchivedThreadsAsync(ulong? before, int? limit, CancellationToken cancellationToken = default)

Parameters

before ulong?

Get threads created before this thread id.

limit int?

Defines the limit of returned DiscordThreadResult.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordThreadResult>

Exceptions

UnauthorizedException

Thrown when the client does not have the ReadMessageHistory permission.

NotFoundException

Thrown when the channel does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.