Integrated the clear command in the ready.cpp

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

View File

@ -28,6 +28,7 @@ void ready::execute(dpp::cluster &bot, const dpp::ready_t &event) {
bot.global_command_create(dpp::slashcommand("add", "Transforms the channel into a global channel", bot.me.id)); bot.global_command_create(dpp::slashcommand("add", "Transforms the channel into a global channel", bot.me.id));
bot.global_command_create(dpp::slashcommand("remove", "Removes the channel from the global chat", bot.me.id).add_option( bot.global_command_create(dpp::slashcommand("remove", "Removes the channel from the global chat", bot.me.id).add_option(
dpp::command_option(dpp::co_channel, "channel", "The channel to remove", false))); dpp::command_option(dpp::co_channel, "channel", "The channel to remove", false)));
bot.global_command_create(dpp::slashcommand("clear", "Removes all global channels", bot.me.id));
bot.global_command_create(dpp::slashcommand().set_name("Report User").set_type(dpp::ctxm_message)); bot.global_command_create(dpp::slashcommand().set_name("Report User").set_type(dpp::ctxm_message));
} }