diff --git a/src/main/java/com/github/johnnyjayjay/discord/commandapi/CommandListener.java b/src/main/java/com/github/johnnyjayjay/discord/commandapi/CommandListener.java index ee73528..6a9b862 100644 --- a/src/main/java/com/github/johnnyjayjay/discord/commandapi/CommandListener.java +++ b/src/main/java/com/github/johnnyjayjay/discord/commandapi/CommandListener.java @@ -5,6 +5,7 @@ import net.dv8tion.jda.core.entities.TextChannel; import net.dv8tion.jda.core.events.message.guild.GuildMessageReceivedEvent; import net.dv8tion.jda.core.hooks.ListenerAdapter; +import net.dv8tion.jda.core.hooks.SubscribeEvent; import java.util.HashMap; import java.util.Map; @@ -19,7 +20,8 @@ public CommandListener(CommandSettings settings) { this.settings = settings; this.cooldowns = new HashMap<>(); } - + + @SubscribeEvent @Override public void onGuildMessageReceived(GuildMessageReceivedEvent event) { TextChannel channel = event.getChannel();