made remove button work

This commit is contained in:
2025-06-08 22:12:46 +02:00
parent 5acdebbb3d
commit bea192849d
7 changed files with 81 additions and 27 deletions
+3 -1
View File
@@ -34,7 +34,9 @@ pub async fn serenity_send_msg(ctx: &serenity::Context, component: &ComponentInt
pub async fn serenity_edit_msg_embed(ctx: &serenity::Context, c_id: &ChannelId, m_id: &MessageId, e: EmbedOptions) {
let r = EditMessage::new().embed(embed_from_options(e));
let r = EditMessage::new()
.embed(embed_from_options(e.clone()))
.components(e.actionrows.unwrap());
let _ = c_id.edit_message(ctx.http.clone(), m_id, r).await;
}