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
ulongThe id of the thread to get.
thread
DiscordThreadChannelThe thread, if found.
fetch
boolWhether to ignore the cache. Defaults to true.
Returns
- bool
True if found, otherwise false.