DiscordSRV

DiscordSRV

86.8k Downloads

Hover text for Discord replies

akdukaan opened this issue · 2 comments

commented

Why?

The Discord bot forwards Minecraft chat to a Discord channel. When someone on Discord replies to that message, there's currently no way to see, from Minecraft, which of the bot's messages the user was replying to.

What and How?

We can apply hover text to the sent message showing the full content of the message that we replied to. People can hover over it to see more detail about what it was a reply to.

Are there alternatives?

n/a

Checks

  • I have used the search at least once to check if my idea has already been suggested and perhaps already implemented.

Anything else

No response

commented

Set this line of your messages.yml:
DiscordToMinecraftMessageReplyFormat: " <hover:show_text:'%message%'>(replying to %name%)"

commented

Oh that’s awesome didn’t realize that was possible thanks!
Just an update for anyone stumbling across this in the future: If it doesn't work, it's because you have formatting codes in the &9 format. For this to work, you need to switch all those to the <blue> format, in both the reply and the message.