Formatting

This commit is contained in:
Natsu Kagami 2024-02-18 01:07:13 +01:00 committed by Natsu Kagami
parent 4a1853532a
commit f57cd528f3
2 changed files with 11 additions and 6 deletions

View file

@ -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()))