mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
Formatting
This commit is contained in:
parent
4a1853532a
commit
f57cd528f3
2 changed files with 11 additions and 6 deletions
|
@ -78,7 +78,7 @@ pub async fn vote(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult
|
|||
let author = msg.author.clone();
|
||||
let asked = msg.timestamp;
|
||||
let until = *asked + (chrono::Duration::from_std(*duration).unwrap());
|
||||
let panel = channel.send_message(&ctx,
|
||||
let panel = channel.send_message(&ctx,
|
||||
CreateMessage::new().content("@here").embed(
|
||||
CreateEmbed::new().author( {
|
||||
CreateEmbedAuthor::new(&author.name).icon_url(author.avatar_url().unwrap_or_else(|| "".to_owned()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue