Context menus are application commands that appear on the context menu (right click or tap) of users or messages to perform context-specific actions. They can be created using dpp::slashcommand. Once you create a context menu, try right-clicking either a user or message to see it in your server!
on_message_context_menu
(dpp::message_context_menu_t) event.The following example shows how to create and handle user context menus for message context menus, read the notice above.
It registers a guild command that can be called by right-clicking a user and clicking on the created menu.