Simple Discord Link Bot

Simple Discord Link Bot

1M Downloads

[Bug]: Player's name randomly shows a "\" in it

AllOutJay opened this issue ยท 4 comments

commented

๐Ÿž Description

Players name randomly shows a \ in it. Assuming it is because they have an _ in their name.

๐Ÿ”„ Steps to reproduce

  1. Have the required mods installed
  2. [Assumption] Get a player with a _ in their name to send a message in Minecraft
  3. View the \ in their name on Discord now

โœ… Expected behavior

The name in Minecraft should appear as the name in Discord. It should not add characters that aren't there.

โŒ Actual behavior

The mod when sending the message to Discord is adding a \ to a player's name.

๐ŸŽฎ Minecraft Version

1.21.4

๐Ÿ› ๏ธ Mod Version

3.2.3

๐Ÿ“ฆ Mod Loader

Fabric

๐Ÿ”ง Mod Loader Version

0.16.10

๐Ÿ“š CraterLib Version

CraterLib-Fabric-1.21.3-2.1.3

๐Ÿ“œ Logs & Screenshots

Message shown in Discord where their name shows as "KnightFox_"
Image

Message shown in Console where their name is just "KnightFox_"
Image

commented

Hmmm, yeah we probably shouldn't do that in webhook names. Only in embeds and normal messages. Confirmed bug

commented

Did want to mention that this worked fine previously. I think this began to occur in the latest update.

commented

Yeah. It was related to a feature request, but the filter is applied in the wrong place for webhook names.

commented

Fixed in 3.3.0