Table of Contents

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 ulong

The id of the channel to get.

channel DiscordChannel

The queried channel, if found.

fetch bool

Whether to ignore the cache. Defaults to true.

Returns

bool

True if channel found, otherwise false.