Table of Contents

Method GetChannelsAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetChannelsAsync(CancellationToken)

Gets all the channels this guild has.

public Task<IReadOnlyList<DiscordChannel>> GetChannelsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<IReadOnlyList<DiscordChannel>>

A collection of this guild's channels.

Exceptions

ServerErrorException

Thrown when Discord is unable to process the request.