Table of Contents

Method ListPublicArchivedThreadsAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

ListPublicArchivedThreadsAsync(DateTimeOffset?, int)

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

public Task<ThreadQueryResult> ListPublicArchivedThreadsAsync(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 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.