Method GetApplicationCommandsAsync
- Namespace
- DisCatSharp.ApplicationCommands
- Assembly
- DisCatSharp.ApplicationCommands.dll
GetApplicationCommandsAsync(DiscordShardedClient)
Gets the application commands from this DiscordShardedClient.
public static Task<IReadOnlyDictionary<int, ApplicationCommandsExtension>> GetApplicationCommandsAsync(this DiscordShardedClient client)
Parameters
client
DiscordShardedClientClient to get application commands from.
Returns
- Task<IReadOnlyDictionary<int, ApplicationCommandsExtension>>
A dictionary of current ApplicationCommandsExtension with the key being the shard id.