diff --git a/src/commands/clear.cpp b/src/commands/clear.cpp new file mode 100644 index 0000000..a47c4f9 --- /dev/null +++ b/src/commands/clear.cpp @@ -0,0 +1,8 @@ +#include "clear.h" +#include "api/util.h" + +void clear::execute(sql::Connection &con, dpp::cluster &bot, const dpp::slashcommand_t &event) { + util::executeQuery(con, "DELETE FROM channels WHERE guildId = ?", {event.command.guild_id.str()}); + + util::sendSuccess(event, "All channels have been unregistered."); +} \ No newline at end of file