D++ (DPP)  10.0.30
C++ Discord API Bot Library
Slash commands

Here, you will find examples on how to use slash commands, subcommands, and different types or parameters.

Note
Keep in mind, a slash command when sent to your bot is NOT SENT AS A MESSAGE! It is not a string but an interaction structure with its own data, and command parameters are objects.