QoL
* Made todo added responses ephemeral if /settings ephemeral is on * Enabled systemd watchdog * Move metrics to rocket
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
use poise::CreateReply;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{
|
||||
@ -33,7 +34,13 @@ impl Recordable for Options {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
ctx.say("Item added to todo list").await?;
|
||||
let ephemeral = ctx
|
||||
.guild_data()
|
||||
.await
|
||||
.map_or(false, |gr| gr.map_or(false, |g| g.ephemeral_confirmations));
|
||||
|
||||
ctx.send(CreateReply::default().content("Item added to todo list").ephemeral(ephemeral))
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user