diff --git a/modules/starboard/starboard.go b/modules/starboard/starboard.go index 17d591f..f48c22b 100644 --- a/modules/starboard/starboard.go +++ b/modules/starboard/starboard.go @@ -90,8 +90,8 @@ func ReactListener(s *discordgo.Session, m *discordgo.MessageReactionAdd) { IconURL: "https://cdn.discordapp.com/avatars/" + msg.Author.ID + "/" + msg.Author.Avatar + ".png", }, } - if len(msg.Embeds) > 0 && msg.Embeds[0].Image != nil { - img := msg.Embeds[0].Image + if len(msg.Attachments) > 0 && msg.Attachments[0] != nil && msg.Attachments[0].Width > 0 { + img := msg.Attachments[0] embed.Thumbnail = &discordgo.MessageEmbedThumbnail{ URL: img.URL, ProxyURL: img.ProxyURL,