mayudev / revcord

A bridge for Discord and Revolt with easy setup through commands
MIT License
64 stars 9 forks source link

Removed trailing newlines in bridged messages #27

Closed Wynd closed 1 year ago

Wynd commented 1 year ago

Essentially there is a trailing newline at the end of bridged messages from discord to revolt, which is not present on the original message. Since it only happens with messages send from discord and viewed in revolt I've only added the fix in discord.ts formatMessage as everything else seems to be working fine and I did not want to break something else.

Discord on left, Revolt on right

Before before pic

After after pic

Bonus, pic showing the issue does not happen when sending messages from revolt to discord. bonus pic

I've ran the setup process on two different server pairs with two different bots just to make sure this wasn't a setup or server issue.

Not entirely sure if I'm the only one bothered by this, if nobody faced this issue so far or if I'm just the first one to make a PR for it...

mayudev commented 1 year ago

I haven't encountered this issue, so I guess there is some special condition for it