From 209b7caec572d39e458b1be203261a7898035fdb Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 23 Sep 2023 07:21:48 -0700 Subject: [PATCH] discord relay: fix empty message bug Signed-off-by: Stephen Gutekanst --- internal/wrench/discord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/wrench/discord.go b/internal/wrench/discord.go index f7c8799..7b12fce 100644 --- a/internal/wrench/discord.go +++ b/internal/wrench/discord.go @@ -88,7 +88,7 @@ func (b *Bot) discordOnMessageCreate(s *discordgo.Session, m *discordgo.MessageC if len(m.Embeds) > 0 { embeds = append(embeds, m.Embeds...) } - err := b.discordSendMessageToChannelEmbeds(b.Config.ActivityChannel, m.Embeds) + err := b.discordSendMessageToChannelEmbeds(b.Config.ActivityChannel, embeds) if err != nil { b.idLogf("discord-relay", "unable to relay message: %v", err) }