mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-01 08:39:31 +01:00
Fix channels using the member cache in MinecraftToDiscordChatModule
This commit is contained in:
parent
a8944309c8
commit
0411384533
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user