Skip to content

Commit 41a06d2

Browse files
authored
fix: omit avatar_url in discord payload when empty (#22393) (#22394)
Backport #22393 Signed-off-by: jolheiser <[email protected]>
1 parent 885082f commit 41a06d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/webhook/discord.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type (
5555
Wait bool `json:"wait"`
5656
Content string `json:"content"`
5757
Username string `json:"username"`
58-
AvatarURL string `json:"avatar_url"`
58+
AvatarURL string `json:"avatar_url,omitempty"`
5959
TTS bool `json:"tts"`
6060
Embeds []DiscordEmbed `json:"embeds"`
6161
}

0 commit comments

Comments
 (0)