Skip to content

Commit

Permalink
fix(jda): add override annotation to error handler impl
Browse files Browse the repository at this point in the history
Signed-off-by: Jasper Lutz Severino <jasperlutzseverino@gmail.com>
  • Loading branch information
lutzseverino committed Aug 8, 2022
1 parent 83db284 commit 30a4423
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent;

public class JDABookErrorHandlerImpl implements JDABookErrorHandler {
public void whenBookIsNull(ButtonInteractionEvent event) {
@Override public void whenBookIsNull(ButtonInteractionEvent event) {
event.reply("This book may no longer exist.").setEphemeral(true).queue();
}

public void whenUserIsNotOwner(ButtonInteractionEvent event) {
@Override public void whenUserIsNotOwner(ButtonInteractionEvent event) {
event.reply("You cannot navigate this book").setEphemeral(true).queue();
}
}

0 comments on commit 30a4423

Please sign in to comment.