From f9004e5863066e144185334f208a40512ae041a7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 4 Mar 2022 19:43:41 +0100 Subject: [PATCH] Fix: Trim spaces in title as Discord does to fix comare always seeing a change in whitespaces Signed-off-by: Knut Ahlers --- mod_streamSchedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_streamSchedule.go b/mod_streamSchedule.go index ce895a1..0953554 100644 --- a/mod_streamSchedule.go +++ b/mod_streamSchedule.go @@ -133,7 +133,7 @@ func (m modStreamSchedule) cronUpdateSchedule() { msgEmbed.Fields = append(msgEmbed.Fields, &discordgo.MessageEmbedField{ Name: m.formatTime(*seg.StartTime), - Value: title, + Value: strings.TrimSpace(title), Inline: false, })