diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 720e830..98c9765 100644 --- a/src/main.rs +++ b/src/main.rs @@ -99,7 +99,7 @@ impl EventHandler for Handler { .remove(&deleted_message_id) .iter() .for_each(|id| { - if let Err(e) = channel_id.delete_message(ctx, id) { + if let Err(e) = channel_id.delete_message(&ctx, id) { error!("deleting message: {}", e); } }); @@ -202,7 +202,7 @@ fn run() -> Result<()> { }, Err(e) => { - if let Err(e) = msg.react(ctx, "❌") { + if let Err(e) = msg.react(&ctx, "❌") { error!("reacting to failed message: {}", e); } |
