mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-12-20 10:21:22 +00:00
Fix: Compare content for updates
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
788edcba5b
commit
4f63bf2d19
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ func (m modStreamSchedule) cronUpdateSchedule() {
|
||||||
if managedMsg != nil {
|
if managedMsg != nil {
|
||||||
oldEmbed := managedMsg.Embeds[0]
|
oldEmbed := managedMsg.Embeds[0]
|
||||||
|
|
||||||
if isDiscordMessageEmbedEqual(oldEmbed, msgEmbed) {
|
if isDiscordMessageEmbedEqual(oldEmbed, msgEmbed) && strings.TrimSpace(managedMsg.Content) == strings.TrimSpace(contentString) {
|
||||||
log.Debug("Stream Schedule is up-to-date")
|
log.Debug("Stream Schedule is up-to-date")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue