diff --git a/common/src/main/java/com/discordsrv/common/messageforwarding/game/MinecraftToDiscordChatModule.java b/common/src/main/java/com/discordsrv/common/messageforwarding/game/MinecraftToDiscordChatModule.java index ef8af6a6..7c8633ab 100644 --- a/common/src/main/java/com/discordsrv/common/messageforwarding/game/MinecraftToDiscordChatModule.java +++ b/common/src/main/java/com/discordsrv/common/messageforwarding/game/MinecraftToDiscordChatModule.java @@ -61,6 +61,7 @@ import java.util.regex.Pattern; public class MinecraftToDiscordChatModule extends AbstractGameMessageModule { + // TODO: allow disabling these private final Map> memberMentions = new ConcurrentHashMap<>(); private final Map> roleMentions = new ConcurrentHashMap<>(); private final Map> channelMentions = new ConcurrentHashMap<>(); @@ -219,7 +220,7 @@ public class MinecraftToDiscordChatModule extends AbstractGameMessageModule getMemberMentions(Guild guild) { - return channelMentions.computeIfAbsent(guild.getIdLong(), key -> { + return memberMentions.computeIfAbsent(guild.getIdLong(), key -> { Map mentions = new LinkedHashMap<>(); for (Member member : guild.getMembers()) { mentions.put(member.getIdLong(), convertMember(member)); @@ -259,7 +260,7 @@ public class MinecraftToDiscordChatModule extends AbstractGameMessageModule getChannelMentions(Guild guild) { - return memberMentions.computeIfAbsent(guild.getIdLong(), key -> { + return channelMentions.computeIfAbsent(guild.getIdLong(), key -> { Map mentions = new LinkedHashMap<>(); for (GuildChannel channel : guild.getChannels()) { mentions.put(channel.getIdLong(), convertChannel(channel));