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()