Skip to content

Commit ded9a21

Browse files
authored
fix: omit avatar_url in discord payload when empty (#22393) (#22395)
Backport #22393 Signed-off-by: jolheiser <[email protected]>
1 parent 03f06d5 commit ded9a21

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
@@ -54,7 +54,7 @@ type (
5454
Wait bool `json:"wait"`
5555
Content string `json:"content"`
5656
Username string `json:"username"`
57-
AvatarURL string `json:"avatar_url"`
57+
AvatarURL string `json:"avatar_url,omitempty"`
5858
TTS bool `json:"tts"`
5959
Embeds []DiscordEmbed `json:"embeds"`
6060
}

0 commit comments

Comments
 (0)