Skip to content

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

@0za0

Description

@0za0

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions