Table of Contents

Method TryGetThread

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

TryGetThread(ulong, out DiscordThreadChannel?, bool)

Tries to get a thread.

public bool TryGetThread(ulong id, out DiscordThreadChannel? thread, bool fetch = true)

Parameters

id ulong

The id of the thread to get.

thread DiscordThreadChannel

The thread, if found.

fetch bool

Whether to ignore the cache. Defaults to true.

Returns

bool

True if found, otherwise false.