Method MapApplicationCommands
- Namespace
- DSharpPlus.Commands.Processors.SlashCommands
- Assembly
- DSharpPlus.Commands.dll
MapApplicationCommands(IReadOnlyList<DiscordApplicationCommand>)
Matches the application commands to the commands in the command tree.
public IReadOnlyDictionary<ulong, Command> MapApplicationCommands(IReadOnlyList<DiscordApplicationCommand> applicationCommands)Parameters
- applicationCommandsIReadOnlyList<DiscordApplicationCommand>
- The application commands obtained from Discord. Accepts both global and guild commands. 
Returns
- IReadOnlyDictionary<ulong, Command>
- A dictionary mapping the application command id to the command in the command tree.