From 1a50ac194851ca3b1fd5811628ace82565de5bb1 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sun, 12 Jun 2022 20:28:51 -0400 Subject: Update serenity version --- src/commands/pony.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commands/pony.rs') diff --git a/src/commands/pony.rs b/src/commands/pony.rs index 532937a..cf18cc9 100644 --- a/src/commands/pony.rs +++ b/src/commands/pony.rs @@ -50,7 +50,7 @@ pub async fn randpony(ctx: Context<'_>) -> Result<(), Error> { .json::() .await?; - match response_msg.unwrap().message().await { + match response_msg.message().await { Ok(mut msg) => { msg.edit(&ctx.discord(), |m| { m.content(""); @@ -104,7 +104,7 @@ pub async fn tpony( .json::() .await?; - match response_msg.unwrap().message().await { + match response_msg.message().await { Ok(mut msg) => { msg.edit(&ctx.discord(), |m| { m.content(""); @@ -150,14 +150,14 @@ pub async fn ponybyid( { Ok(r) => r.json::().await?, Err(_) => { - response_msg.unwrap().message().await.unwrap().edit(ctx.discord(), |m| { + response_msg.message().await.unwrap().edit(ctx.discord(), |m| { m.content("There was an error fetching that pony, please double-check your ID and try again.") }).await?; return Ok(()); } }; - match response_msg.unwrap().message().await { + match response_msg.message().await { Ok(mut msg) => { msg.edit(&ctx.discord(), |m| { m.content(""); -- cgit v1.2.3