Skip to content

[Bug]: Sending multiple custom server emotes of the same kind in one message from Minecraft chat makes them display strangely in Discord #211

@itsyunaya

Description

@itsyunaya

🐞 Description

When sending a message from Minecraft chat containing multiple of the same custom emote (e.g. :custom1: :custom1: :custom1:), the formatting of the message sent into Discord by the bot completely breaks, resulting in something like the following:

[username]: <<<:custom1:1463195137176899831>1463195137176899831>1463195137176899831><<<:custom1:1463195137176899831>1463195137176899831>1463195137176899831><<<:custom1:1463195137176899831>1463195137176899831>1463195137176899831><<<:custom1:1463195137176899831>1463195137176899831>1463195137176899831>

Hereby, the emote itself is displayed correctly.

The bug still occurs when the message sent from Minecraft chat contains text and/or whitespace between the emotes, however does not affect distinct custom emotes (e.g. sending :custom1: :custom2: works as expected)

This has been tested on a newly generated world/server without any additional mods.

🔄 Steps to reproduce

  1. Send a message into Minecraft chat containing multiple of the same custom emote available on the linked server: :custom1: :custom1:
  2. Observe the message sent by the bot in the linked Discord channel

✅ Expected behavior

The message sent to the channel shows [username]: :custom1: :custom1:(Emotes show and render correctly)

❌ Actual behavior

The message sent to the channel instead shows [username]: <:custom1:1463195137176899832> <:custom1:1463195137176899831> (Emotes themselves still correctly displayed, but with whats presumably the emote id added)

🎮 Minecraft Version

1.21.11

🛠️ Mod Version

3.3.4

📦 Mod Loader

Fabric

🔧 Mod Loader Version

0.18.4

📚 CraterLib Version

3.0.1

📜 Logs & Screenshots

A screenshot of the bug occuring.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions