Integrated the clear command in the slash.cpp

This commit is contained in:
Mathias Wagner 2023-11-04 17:33:37 +01:00
parent 656ccc9b19
commit a436b99c52
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -2,9 +2,11 @@
#include "commands/rules.h"
#include "commands/add.h"
#include "commands/remove.h"
#include "commands/clear.h"
void slash::execute(sql::Connection &con, dpp::cluster &bot, const dpp::slashcommand_t &event) {
if (event.command.get_command_name() == "rules") return rules::execute(event);
if (event.command.get_command_name() == "add") return add::execute(con, bot, event);
if (event.command.get_command_name() == "remove") return remove::execute(con, bot, event);
if (event.command.get_command_name() == "clear") return clear::execute(con, bot, event);
}