From 5ae8ca5f0e278abc270ee3f9925b891ffb6f8537 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sun, 9 Feb 2020 15:08:18 -0500 Subject: [PATCH] Signal on the end of pagination handler cycle --- youmubot-prelude/src/pagination.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/youmubot-prelude/src/pagination.rs b/youmubot-prelude/src/pagination.rs index e41944d..77ed411 100644 --- a/youmubot-prelude/src/pagination.rs +++ b/youmubot-prelude/src/pagination.rs @@ -117,6 +117,12 @@ impl PaginationHandler { } } +impl Drop for PaginationHandler { + fn drop(&mut self) { + self.message.react(&self.ctx, "🛑").ok(); + } +} + impl ReactionHandler for PaginationHandler { fn handle_reaction(&mut self, reaction: &Reaction, _is_add: bool) -> CommandResult { if reaction.message_id != self.message.id {