Skip to content

Commit 777b501

Browse files
authored
Merge pull request #99 from rust-lang/delete_msg_await
Actually await the call to delete_message
2 parents 28ea2ae + a2eacc0 commit 777b501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl EventHandler for Events {
287287
let history = data.get_mut::<command_history::CommandHistory>().unwrap();
288288
if let Some(response_id) = history.remove(&message_id) {
289289
info!("deleting message: {:?}", response_id);
290-
let _ = channel_id.delete_message(&cx, response_id);
290+
let _ = channel_id.delete_message(&cx, response_id).await;
291291
}
292292
}
293293

0 commit comments

Comments
 (0)