From e7d46388b9322c18ba8734343ce956fe07f1890e Mon Sep 17 00:00:00 2001 From: rfresh2 <89827146+rfresh2@users.noreply.github.com> Date: Tue, 21 Nov 2023 15:12:47 -0800 Subject: [PATCH] subscribe guild listener on event dispatcher --- src/main/java/vc/listeners/GuildListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/vc/listeners/GuildListener.java b/src/main/java/vc/listeners/GuildListener.java index 816692f..79917fb 100644 --- a/src/main/java/vc/listeners/GuildListener.java +++ b/src/main/java/vc/listeners/GuildListener.java @@ -25,7 +25,8 @@ public GuildListener(final GatewayDiscordClient client, final LiveFeedManager liveFeedManager) { this.guildConfigManager = guildConfigManager; this.liveFeedManager = liveFeedManager; - client.on(GuildCreateEvent.class, this::handle).subscribe(); + + client.getEventDispatcher().on(GuildCreateEvent.class, this::handle).subscribe(); restClient.getGuilds().collectList().subscribe(guilds -> { LOGGER.info("Connected to {} guilds", guilds.size()); LOGGER.info("Connected to guilds: {}", guilds.stream()