figured out how to add buttons
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user