From bf8914ab40f1db9c5ea40e6b1e11ccc7d847c857 Mon Sep 17 00:00:00 2001 From: Ygimenez Date: Tue, 7 Mar 2023 14:38:25 -0300 Subject: [PATCH] Fixed expire not removing buttons or reactions --- pom.xml | 4 ++-- src/main/java/com/github/ygimenez/method/Pages.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d2430c3..4897868 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.github.ygimenez Pagination-Utils - 4.0.0 + 4.0.1 jar Pagination Utils @@ -33,7 +33,7 @@ https://github.com/ygimenez/Pagination-Utils scm:git:git@github.com:ygimenez/Pagination-Utils.git scm:git:git@github.com:ygimenez/Pagination-Utils.git - Pagination-Utils-4.0.0 + Pagination-Utils-4.0.1 diff --git a/src/main/java/com/github/ygimenez/method/Pages.java b/src/main/java/com/github/ygimenez/method/Pages.java index 1511c91..73aab94 100644 --- a/src/main/java/com/github/ygimenez/method/Pages.java +++ b/src/main/java/com/github/ygimenez/method/Pages.java @@ -1680,6 +1680,8 @@ public static void clearButtons(Message msg) { * @param callback Action to be executed after removing reactions. */ public static void finalizeEvent(Message msg, Consumer callback) { + msg = reloadMessage(msg); + clearButtons(msg); clearReactions(msg);