Here is the code:
void (*)(const dpp::slashcommand_t &event) operator[](const std::string &index);
When I compile this, I get the following error message:
In file included from commands_controller.cpp:3,
from main.cpp:2:
commands_controller.h:28:12: error: expected unqualified-id before ‘)’ token
28 | void (*)(const dpp::slashcommand_t &event) operator[](const std::string &index);
Do you have any suggestion for how I can resolve this error?