Method GetThreadAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetThreadAsync(ulong, bool)
Gets a thread.
public Task<DiscordThreadChannel> GetThreadAsync(ulong id, bool fetch = false)
Parameters
Returns
- Task<DiscordThreadChannel>
The requested thread.
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.