Skip to content

Commit

Permalink
Fix LazyListener bot instance
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Apr 23, 2023
1 parent b05b8bd commit 031364b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions library/src/main/java/xyz/srnyx/lazylibrary/LazyListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 031364b

Please sign in to comment.