Created the clear.cpp command
This commit is contained in:
parent
46496eb869
commit
c50696660f
8
src/commands/clear.cpp
Normal file
8
src/commands/clear.cpp
Normal file
@ -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.");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user