Table of Contents

Method GetChannelAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

GetChannelAsync(ulong)

Gets a channel

public Task<DiscordChannel> GetChannelAsync(ulong id)

Parameters

id ulong

The ID of the channel to get.

Returns

Task<DiscordChannel>

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.