add some new commands
Run cargo test / Run tests (push) Successful in 4m7s
Build Docker Package / build (push) Successful in 6m47s
Build Docker Package / build (release) Successful in 7m16s

This commit is contained in:
Elias Wendland committed 2026-07-05 19:49:00 +02:00
1 parent afa64fd55b
commit b1116846aa
10 files changed
+543 -32

No files matched your search

+9
View File
@@ -57,4 +57,13 @@ pub async fn get_all_admin_users(ctx: Context<'_>) -> Result<Vec<sere::User>, Er
pub async fn trace_message(msg: String, channel: String, guild: String) {
trace!("Saying \"{}\" in channel {} in guild {}", msg, channel, guild);
}
pub async fn edit_response_message<'a>(response_message: &poise::ReplyHandle<'a>, ctx: Context<'_>, content: String, silent: bool) -> Result<(), Error> {
if silent {
response_message.edit(ctx, poise::CreateReply::default().content(content).allowed_mentions(serenity::all::CreateAllowedMentions::new().empty_users())).await?;
} else {
response_message.edit(ctx, poise::CreateReply::default().content(content)).await?;
}
Ok(())
}