Table of Contents

Method ListPrivateArchivedThreadsAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

ListPrivateArchivedThreadsAsync(DateTimeOffset?, int)

Gets the threads that are private and archived for this channel.

public Task<ThreadQueryResult> ListPrivateArchivedThreadsAsync(DateTimeOffset? before = null, int limit = 0)

Parameters

before DateTimeOffset?
limit int

Returns

Task<ThreadQueryResult>

A ThreadQueryResult containing the threads for this query and if an other call will yield more threads.

Exceptions

UnauthorizedException

Thrown when the client does not have the ReadMessageHistory and the ManageThreads 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.