Method GetActiveThreadsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetActiveThreadsAsync(CancellationToken)
Gets active 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> GetActiveThreadsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- NotFoundException
Thrown when the thread does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.