mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-08 15:10:02 +00:00
Fix: Do not try to compare non existing embed
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3f2c4703ef
commit
5f004fdab0
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ func (m modReactionRole) Setup() error {
|
|||
Content: contentString,
|
||||
Embed: msgEmbed,
|
||||
})
|
||||
} else if !isDiscordMessageEmbedEqual(managedMsg.Embeds[0], msgEmbed) || managedMsg.Content != contentString {
|
||||
} else if (len(managedMsg.Embeds) > 0 && !isDiscordMessageEmbedEqual(managedMsg.Embeds[0], msgEmbed)) || managedMsg.Content != contentString {
|
||||
_, err = m.discord.ChannelMessageEditComplex(&discordgo.MessageEdit{
|
||||
Content: &contentString,
|
||||
Embed: msgEmbed,
|
||||
|
|
Loading…
Reference in a new issue