Made them communicate but somehow broke "hello" messages

This commit is contained in:
2025-02-07 21:16:33 +01:00
parent 9425c2cccc
commit e2869fb8a2
8 changed files with 125 additions and 2 deletions
+3
View File
@@ -1,3 +1,5 @@
use std::process;
use crate::{Context, Error};
use crate::messages::{send_embed, send_msg, edit_msg, EmbedOptions};
@@ -33,6 +35,7 @@ pub async fn stop(
send_msg(ctx, "Shutting down...".to_string(), true, true).await;
ctx.serenity_context().set_presence(None, OnlineStatus::Invisible);
ctx.framework().shard_manager.shutdown_all().await;
process::exit(0);
}
else if !is_creator {
send_msg(ctx, "Failed to shut down: Invalid permissions.".to_string(), true, true).await;