Table of Contents

Class DiscordClientExtensions

Namespace
Discord
Assembly
Discord.Net.Core.dll

An extension class for the Discord client.

public static class DiscordClientExtensions
Inheritance
DiscordClientExtensions
Inherited Members

Methods

GetDMChannelAsync(IDiscordClient, ulong)

Gets the DM channel with the provided ID.

public static Task<IDMChannel> GetDMChannelAsync(this IDiscordClient client, ulong id)

Parameters

client IDiscordClient
id ulong

Returns

Task<IDMChannel>

GetDMChannelsAsync(IDiscordClient)

Gets all available DM channels for the client.

public static Task<IEnumerable<IDMChannel>> GetDMChannelsAsync(this IDiscordClient client)

Parameters

client IDiscordClient

Returns

Task<IEnumerable<IDMChannel>>

GetGroupChannelAsync(IDiscordClient, ulong)

Gets the group channel with the provided ID.

public static Task<IGroupChannel> GetGroupChannelAsync(this IDiscordClient client, ulong id)

Parameters

client IDiscordClient
id ulong

Returns

Task<IGroupChannel>

GetGroupChannelsAsync(IDiscordClient)

Gets all available group channels for the client.

public static Task<IEnumerable<IGroupChannel>> GetGroupChannelsAsync(this IDiscordClient client)

Parameters

client IDiscordClient

Returns

Task<IEnumerable<IGroupChannel>>

GetOptimalVoiceRegionAsync(IDiscordClient)

Gets the most optimal voice region for the client.

public static Task<IVoiceRegion> GetOptimalVoiceRegionAsync(this IDiscordClient discord)

Parameters

discord IDiscordClient

Returns

Task<IVoiceRegion>

GetPrivateChannelAsync(IDiscordClient, ulong)

Gets the private channel with the provided ID.

public static Task<IPrivateChannel> GetPrivateChannelAsync(this IDiscordClient client, ulong id)

Parameters

client IDiscordClient
id ulong

Returns

Task<IPrivateChannel>