Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Third Party Emotes only resolve when message contains normal Twitch Emote #266

Open
0za0 opened this issue Jul 19, 2024 · 0 comments
Open

Comments

@0za0
Copy link

0za0 commented Jul 19, 2024

Version: 4.0.0-preview-5677f50eb2a7544e1b9b136a0e1537abf5083385
Issue: Third Party Emotes such as the ones on BetterTwitchTv only get replaced when an official Twitch emote is also contained in the chat message.

Example Code:

        TwitchClient client;
        ConnectionCredentials credentials = new ConnectionCredentials("user", "token");
        client = new TwitchClient(protocol: ClientProtocol.WebSocket);
        client.Initialize(credentials, "channel");

        client.OnMessageReceived += (object? sender, OnMessageReceivedArgs e) =>
        {
            Console.WriteLine(e.ChatMessage.Message);
            Console.WriteLine(e.ChatMessage.EmoteReplacedMessage);
            return null;
        };
        client.WillReplaceEmotes = true;


        client.ChannelEmotes.Add(new MessageEmote("5d7eefb7c0652668c9e4d394", "modCheck", MessageEmote.EmoteSource.BetterTwitchTv));
        await client.ConnectAsync();
        Console.ReadLine();

Chat and Output:
image
image

Expected Result:
Third Party Emotes should be able to get replaced in a message without the need for an official Twitch Emote.

If somebody has a workaround or if I'm using TwitchLib wrong please let me know!

@0za0 0za0 changed the title Third Party Emotes only resolve when message contains official Twitch Emote Third Party Emotes only resolve when message contains normal Twitch Emote Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant