Skip to content

Commit

Permalink
Fix emojis displaying in game as unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
mattboy9921 committed Feb 11, 2022
1 parent 3097bf6 commit a666b56
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import github.scarsz.discordsrv.api.Subscribe;
import github.scarsz.discordsrv.api.events.DiscordGuildMessagePreProcessEvent;
import github.scarsz.discordsrv.api.events.DiscordReadyEvent;
import github.scarsz.discordsrv.dependencies.emoji.EmojiParser;
import net.mattlabs.crewchat.CrewChat;
import net.mattlabs.crewchat.util.ChatSender;

Expand All @@ -14,7 +15,7 @@ public class DiscordSRVListener {

@Subscribe
public void discordMessageReceivedPre(DiscordGuildMessagePreProcessEvent event) {
chatSender.sendDiscordMessage(event.getMember(), event.getChannel(), event.getMessage().getContentDisplay());
chatSender.sendDiscordMessage(event.getMember(), event.getChannel(), EmojiParser.parseToAliases(event.getMessage().getContentDisplay()));
event.setCancelled(true);
}

Expand Down

0 comments on commit a666b56

Please sign in to comment.