diff options
-rw-r--r-- | bridge/discord/discord.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index c8b810c6..daeaa403 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -242,6 +242,12 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) { msg.Text = "_" + msg.Text + "_" } + // Handle prefix hint for unthreaded messages. + if msg.ParentID == "msg-parent-not-found" { + msg.ParentID = "" + msg.Text = fmt.Sprintf("[thread]: %s", msg.Text) + } + // Use webhook to send the message useWebhooks := b.shouldMessageUseWebhooks(&msg) if useWebhooks && msg.Event != config.EventMsgDelete && msg.ParentID == "" { |