From b10d967f868a1518e6a90d7ae022be44c96fb531 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 10 Jan 2023 10:56:36 -0600 Subject: [PATCH] fix: omit avatar_url when empty Signed-off-by: jolheiser --- services/webhook/discord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/webhook/discord.go b/services/webhook/discord.go index ed44fef404801..014d409ce7326 100644 --- a/services/webhook/discord.go +++ b/services/webhook/discord.go @@ -55,7 +55,7 @@ type ( Wait bool `json:"wait"` Content string `json:"content"` Username string `json:"username"` - AvatarURL string `json:"avatar_url"` + AvatarURL string `json:"avatar_url,omitempty"` TTS bool `json:"tts"` Embeds []DiscordEmbed `json:"embeds"` }