mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
Signal on the end of pagination handler cycle
This commit is contained in:
parent
b0f70fb2a1
commit
5ae8ca5f0e
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@ impl<T: Pagination> PaginationHandler<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T: Pagination> Drop for PaginationHandler<T> {
|
||||
fn drop(&mut self) {
|
||||
self.message.react(&self.ctx, "🛑").ok();
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Pagination> ReactionHandler for PaginationHandler<T> {
|
||||
fn handle_reaction(&mut self, reaction: &Reaction, _is_add: bool) -> CommandResult {
|
||||
if reaction.message_id != self.message.id {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue