figured out how to add buttons

This commit is contained in:
2025-06-06 00:30:59 +02:00
parent 71da587242
commit 53a1fdee19
9 changed files with 36 additions and 12 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ pub async fn cmd(
let r = dc_add_server(ctx.data(), ctx.guild_id().unwrap().into()).await;
if r.is_ok() {
send_msg(ctx, lang!("dc_msg_added_to_data"), true, true).await;
send_msg(ctx, lang!("dc_msg_add_to_data"), true, true).await;
}
else {
send_msg(ctx, lang!("dc_msg_corrupted_data"), true, true).await;
+2 -1
View File
@@ -39,7 +39,8 @@ pub async fn cmd(
ephemeral: ephemeral.unwrap_or(false),
message,
thumbnail,
author: if author.unwrap_or(false) { Some(Author { name: ctx.author().name.clone(), url: "".to_string(), icon_url: ctx.author().avatar_url().unwrap() }) } else { None }
author: if author.unwrap_or(false) { Some(Author { name: ctx.author().name.clone(), url: "".to_string(), icon_url: ctx.author().avatar_url().unwrap() }) } else { None },
..Default::default()
},
reply_unwrap
).await;