Method GetPrivateArchivedThreadsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetPrivateArchivedThreadsAsync(ulong?, int?, CancellationToken)
Gets 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> GetPrivateArchivedThreadsAsync(ulong? before, int? limit, CancellationToken cancellationToken = default)
Parameters
beforeulong?Get threads created before this thread id.
limitint?Defines the limit of returned DiscordThreadResult.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageThreads or 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.