Method TryGetChannel
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
TryGetChannel(ulong, out DiscordChannel?, bool)
Tries to get a channel.
public bool TryGetChannel(ulong id, out DiscordChannel? channel, bool fetch = true)
Parameters
id
ulongThe id of the channel to get.
channel
DiscordChannelThe queried channel, if found.
fetch
boolWhether to ignore the cache. Defaults to true.
Returns
- bool
True if channel found, otherwise false.