Table of Contents

Method GetChannelAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetChannelAsync(ulong, bool)

Gets a channel.

public Task<DiscordChannel> GetChannelAsync(ulong id, bool fetch = false)

Parameters

id ulong

The id of the channel to get.

fetch bool

Whether to ignore the cache. Defaults to false.

Returns

Task<DiscordChannel>

The requested channel.

Exceptions

NotFoundException

Thrown when the channel does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.