Table of Contents

Method GetOrderedChannelsAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetOrderedChannelsAsync(CancellationToken)

Gets an ordered DiscordChannel list. Returns a Dictionary where the key is an ulong and can be mapped to Category DiscordChannels. Ignore the 0 key here, because that indicates that this is the "has no category" list. Each value contains a ordered list of text/news and voice/stage channels as DiscordChannel.

public Task<Dictionary<ulong, List<DiscordChannel>>> GetOrderedChannelsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<Dictionary<ulong, List<DiscordChannel>>>

A ordered list of categories with its channels