Skip to content

Commit

Permalink
fix: fixed stream embed sender
Browse files Browse the repository at this point in the history
  • Loading branch information
Millefeuille42 committed Apr 4, 2024
1 parent 77ae830 commit 136d4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bot/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func streamComplex(complex *discordgo.MessageSend) error {
}

func streamEmbed(embed *discordgo.MessageEmbed) error {
return streamComplex(&discordgo.MessageSend{Embed: embed})
return streamComplex(&discordgo.MessageSend{Embeds: []*discordgo.MessageEmbed{embed}})
}

func handleNewMessage(event []byte) error {
Expand Down

0 comments on commit 136d4da

Please sign in to comment.