Skip to content

Commit

Permalink
public Quasicord constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkyl committed Dec 22, 2023
1 parent 868cd53 commit 893ef4e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/dev/qixils/quasicord/Quasicord.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,13 @@ public class Quasicord {
* @throws InterruptedException
* @throws IOException
*/
protected Quasicord(@NonNull String namespace, @NonNull List<Locale> locales, @NonNull Path configRoot, @Nullable Activity activity, @Nullable Object eventHandler) throws LoginException, InterruptedException, IOException {
public Quasicord(@NonNull String namespace, @NonNull List<Locale> locales, @NonNull Path configRoot, @Nullable Activity activity, @Nullable Object eventHandler) throws LoginException, InterruptedException, IOException {
if (locales.isEmpty()) {
throw new IllegalArgumentException("'locales' parameter must have at least one object");
}

// misc initialization
this.namespace = namespace;

// register default event handler
if (eventHandler != null)
eventDispatcher.registerListeners(eventHandler);
Expand Down

0 comments on commit 893ef4e

Please sign in to comment.