Skip to content

Commit

Permalink
Fixed ephemeral messages preventing event finalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygimenez committed Aug 14, 2023
1 parent 59d0d05 commit 0361521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/github/ygimenez/method/Pages.java
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@ public static void finalizeEvent(Message msg, Consumer<Void> callback) {
* @param callback Action to be executed after finalizing.
*/
public static void finalizeEvent(InteractionHook hook, Consumer<Void> callback) {
hook.editOriginalComponents().queue();
hook.deleteOriginal().queue();
callback.accept(null);
}

Expand Down

0 comments on commit 0361521

Please sign in to comment.