Skip to content

Commit

Permalink
Added self-return to setOnRemove.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygimenez committed Sep 18, 2023
1 parent 10e4845 commit 81eb868
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ public ThrowingConsumer<InteractionHook> getOnRemove() {
*
* @param onRemove The action to be performed (the interaction is automatically acknowledged).
*/
public void setOnRemove(ThrowingConsumer<InteractionHook> onRemove) {
public PaginatorBuilder setOnRemove(ThrowingConsumer<InteractionHook> onRemove) {
paginator.setOnRemove(onRemove);
return this;
}

/**
Expand Down

0 comments on commit 81eb868

Please sign in to comment.