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 ++++---- src/commands/reactionroles.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/commands') 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(""); diff --git a/src/commands/reactionroles.rs b/src/commands/reactionroles.rs index 65de61a..ceb7154 100644 --- a/src/commands/reactionroles.rs +++ b/src/commands/reactionroles.rs @@ -73,7 +73,7 @@ pub async fn init( e }); m - }).await?.unwrap().message().await?; + }).await?.message().await?; if let Some(title) = ctx .author() -- cgit v1.2.3