Method GetPublicArchivedThreadsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetPublicArchivedThreadsAsync(ulong?, int?)
Gets archived public 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> GetPublicArchivedThreadsAsync(ulong? before, int? limit)
Parameters
before
ulong?Get threads created before this thread id.
limit
int?Defines the limit of returned DiscordThreadResult.
Returns
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.