diff --git a/paper/src/main/java/net/draycia/carbon/paper/listeners/DiscordMessageListener.java b/paper/src/main/java/net/draycia/carbon/paper/listeners/DiscordMessageListener.java index 3b5f82eac..0ee6db435 100644 --- a/paper/src/main/java/net/draycia/carbon/paper/listeners/DiscordMessageListener.java +++ b/paper/src/main/java/net/draycia/carbon/paper/listeners/DiscordMessageListener.java @@ -23,7 +23,9 @@ import java.util.HashMap; import java.util.Map; import net.draycia.carbon.api.CarbonChat; +import net.draycia.carbon.api.channels.ChatChannel; import net.draycia.carbon.api.users.CarbonPlayer; +import net.draycia.carbon.common.channels.ConfigChatChannel; import net.essentialsx.api.v2.events.discord.DiscordMessageEvent; import net.essentialsx.api.v2.events.discord.DiscordRelayEvent; import net.essentialsx.api.v2.services.discord.DiscordService; @@ -62,7 +64,7 @@ public void onDiscordMessage(final DiscordMessageEvent event) { final CarbonPlayer result = this.carbonChat.userManager().user(event.getUUID()).join(); - var channel = result.selectedChannel(); + final ChatChannel channel = result.selectedChannel(); if (channel == null) { return;