DiscordSRV

DiscordSRV

86.8k Downloads

DiscordChatChannelDiscordFilters is not applied in %message% of DiscordToMinecraftMessageReplyFormat

RICE0707 opened this issue ยท 0 comments

commented

Expected behavior

DiscordToMinecraftMessageReplyFormatshould correctly apply
DiscordChatChannelDiscordFiltersto%message%

Actual behavior

I usedDiscordChatChannelDiscordFiltersto replace\nwith\n|,
In the picture below, you can clearly see that the function works normally
image
image

But when I reply to a message, the part with\nin the message is not correctly filtered into\n|, as shown in the figure below
image
image

Steps to reproduce

https://bin.scarsz.me/5d2807b3-d8b6-445f-b136-935c3f8bcb89#sgJ4vqaKSY3zkA8TlpZ0ucYaN7F4nT8W

Using the same DiscordToMinecraftMessageReplyFormat and DiscordChatChannelDiscordFilters settings as I did,
And in the disocrd channel, just reply with a conversation of more than two lines

Server software and version

git-Purpur-2095 (MC: 1.20.2)*

Checks

  • I am not using an outdated version of DiscordSRV.
  • I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.

Ticket number or message link to where you asked in DiscordSRV's Discord server about this

https://discord.com/channels/135634590575493120/1287279668961218584

Anything else

And I confirmed through the client log that the replied message contained \n, so I concluded that DiscordChatChannelDiscordFilterswas not correctly applied in%message%ofDiscordToMinecraftMessageReplyFormat.

image