Skip to content

Commit

Permalink
fix: omit avatar_url in discord payload when empty (#22393) (#22395)
Browse files Browse the repository at this point in the history
Backport #22393

Signed-off-by: jolheiser <john.olheiser@gmail.com>
  • Loading branch information
jolheiser committed Jan 10, 2023
1 parent 03f06d5 commit ded9a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/webhook/discord.go
Expand Up @@ -54,7 +54,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"`
}
Expand Down

0 comments on commit ded9a21

Please sign in to comment.