Discord Integration Forge

Discord Integration Forge

666k Downloads

[BUG] Tagged names do not display properly

ethosrot opened this issue ยท 4 comments

commented

What happened?
A message from a discord user that tags another discord user does not correctly render in-game. Instead of showing the tagged user's name, it shows their ID in brackets (<@!13349881305128191>).

[ethosrot] hey <@!13349881305128191> are you around?

What should happen?
In-game chat should render the tagged user's name instead of their discord ID. Ideally a bolding effect might be applied to the name to convey that a tag happened.

[ethosrot] hey @Coolguy20 are you around?

Steps to reproduce
From discord, tag any other discord user in a message which would normally be sent to in-game chat via Discord Integration.

Forge version: 1.16.3-34.1.42
Mod version: 2.0.2-1.16

Config file
dicfg.toml.txt

commented

Just a follow-up, I did some more testing -- it looks like role names are also not being translated from their IDs if someone in Discord tags a role.

It might be neat for the translated name to follow the color code of the role in Discord too, especially since it looks like some of the code is already there for pulling the color.

commented

I have the same issue.
grafik
I wanted to ping a role when the server crashes, but that's not possible

commented

I wanted to ping a role when the server crashes, but that's not possible

You can ping a role using <@&[ROLE-ID]> (ofc replace [ROLE-ID] with an role ID)

You can get it by opening the role menu, right click the role and copy ID (requires development mode enabled in discord client)

commented

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days