diff --git a/src/listeners/ready.cpp b/src/listeners/ready.cpp index 209793c..0d6b434 100644 --- a/src/listeners/ready.cpp +++ b/src/listeners/ready.cpp @@ -18,8 +18,7 @@ std::thread ready::get_status_thread(dpp::cluster &bot) { } void ready::execute(dpp::cluster &bot, const dpp::ready_t &event) { - std::cout << "Logged in as " << bot.me.username << " (" << bot.me.id << ")" - << std::endl; + std::cout << "Logged in as " << bot.me.username << " (" << bot.me.id << ")" << std::endl; std::thread status_thread = get_status_thread(bot); status_thread.detach(); @@ -27,5 +26,9 @@ void ready::execute(dpp::cluster &bot, const dpp::ready_t &event) { if (dpp::run_once()) { bot.global_command_create(dpp::slashcommand("rules", "Shows you the rules of the global chat", 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( + dpp::command_option(dpp::co_channel, "channel", "The channel to remove", false))); + + bot.global_command_create(dpp::slashcommand().set_name("Report User").set_type(dpp::ctxm_message)); } }