Table of Contents

Method GetJoinedPrivateArchivedThreadsAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetJoinedPrivateArchivedThreadsAsync(ulong?, int?)

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)

Parameters

before ulong?

Get threads created before this thread id.

limit int?

Defines the limit of returned DiscordThreadResult.

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.