Skip to content

Commit

Permalink
discord relay: fix empty message bug
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Sep 23, 2023
1 parent dc1890d commit 209b7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/wrench/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 209b7ca

Please sign in to comment.