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
IDiscordClientid
ulong
Returns
GetDMChannelsAsync(IDiscordClient)
Gets all available DM channels for the client.
public static Task<IEnumerable<IDMChannel>> GetDMChannelsAsync(this IDiscordClient client)
Parameters
client
IDiscordClient
Returns
GetGroupChannelAsync(IDiscordClient, ulong)
Gets the group channel with the provided ID.
public static Task<IGroupChannel> GetGroupChannelAsync(this IDiscordClient client, ulong id)
Parameters
client
IDiscordClientid
ulong
Returns
GetGroupChannelsAsync(IDiscordClient)
Gets all available group channels for the client.
public static Task<IEnumerable<IGroupChannel>> GetGroupChannelsAsync(this IDiscordClient client)
Parameters
client
IDiscordClient
Returns
GetOptimalVoiceRegionAsync(IDiscordClient)
Gets the most optimal voice region for the client.
public static Task<IVoiceRegion> GetOptimalVoiceRegionAsync(this IDiscordClient discord)
Parameters
discord
IDiscordClient
Returns
GetPrivateChannelAsync(IDiscordClient, ulong)
Gets the private channel with the provided ID.
public static Task<IPrivateChannel> GetPrivateChannelAsync(this IDiscordClient client, ulong id)
Parameters
client
IDiscordClientid
ulong