Table of Contents

Method GetThreadAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetThreadAsync(ulong, bool)

Gets a thread.

public Task<DiscordThreadChannel> GetThreadAsync(ulong id, bool fetch = false)

Parameters

id ulong

The id of the thread to get.

fetch bool

Whether to ignore the cache. Defaults to false.

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.