Fix channels using the member cache in MinecraftToDiscordChatModule

This commit is contained in:
Vankka 2022-04-20 10:17:11 +03:00
parent a8944309c8
commit 0411384533
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -283,7 +283,7 @@ public class MinecraftToDiscordChatModule extends AbstractGameMessageModule<Mine
}
GuildChannel channel = (GuildChannel) event.getChannel();
getMemberMentions(event.getGuild()).put(channel.getIdLong(), convertChannel(channel));
getChannelMentions(event.getGuild()).put(channel.getIdLong(), convertChannel(channel));
}
@Subscribe
@ -293,7 +293,7 @@ public class MinecraftToDiscordChatModule extends AbstractGameMessageModule<Mine
}
GuildChannel channel = (GuildChannel) event.getChannel();
getMemberMentions(event.getGuild()).put(channel.getIdLong(), convertChannel(channel));
getChannelMentions(event.getGuild()).put(channel.getIdLong(), convertChannel(channel));
}
@Subscribe
@ -303,7 +303,7 @@ public class MinecraftToDiscordChatModule extends AbstractGameMessageModule<Mine
}
GuildChannel channel = (GuildChannel) event.getChannel();
getMemberMentions(event.getGuild()).remove(channel.getIdLong());
getChannelMentions(event.getGuild()).remove(channel.getIdLong());
}
public static class CachedMention {