From 031364b267f58eae4f4c601633467221a7439fd9 Mon Sep 17 00:00:00 2001 From: srnyx <25808801+srnyx@users.noreply.github.com> Date: Sun, 23 Apr 2023 12:32:07 -0400 Subject: [PATCH] Fix `LazyListener` bot instance --- .../xyz/srnyx/lazylibrary/LazyListener.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/library/src/main/java/xyz/srnyx/lazylibrary/LazyListener.java b/library/src/main/java/xyz/srnyx/lazylibrary/LazyListener.java index 2b1dea0..11ff8fa 100644 --- a/library/src/main/java/xyz/srnyx/lazylibrary/LazyListener.java +++ b/library/src/main/java/xyz/srnyx/lazylibrary/LazyListener.java @@ -13,20 +13,21 @@ * A modified {@link ListenerAdapter} that provides a few extra utilities and events */ @SuppressWarnings("EmptyMethod") -public class LazyListener extends ListenerAdapter { +public abstract class LazyListener extends ListenerAdapter { /** - * The {@link LazyLibrary bot} instance + * {@link LazyListener} */ - @NotNull protected final LazyLibrary lazyLibrary; + public LazyListener() { + // Exists to add a Javadoc + } /** - * Creates a new {@link LazyListener} + * The {@link LazyLibrary bot's} instance * - * @param lazyLibrary the {@link LazyLibrary bot} instance + * @return the {@link LazyLibrary bot's} instance */ - public LazyListener(@NotNull LazyLibrary lazyLibrary) { - this.lazyLibrary = lazyLibrary; - } + @NotNull + public abstract LazyLibrary getBot(); @Override public void onGuildVoiceUpdate(@NotNull GuildVoiceUpdateEvent event) {