fix: omit avatar_url in discord payload when empty (#22393) (#22394)

Backport #22393

Signed-off-by: jolheiser <john.olheiser@gmail.com>
tokarchuk/v1.18
John Olheiser 2 years ago committed by GitHub
parent 885082f7a7
commit 41a06d2e82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      services/webhook/discord.go

@ -55,7 +55,7 @@ type (
Wait bool `json:"wait"` Wait bool `json:"wait"`
Content string `json:"content"` Content string `json:"content"`
Username string `json:"username"` Username string `json:"username"`
AvatarURL string `json:"avatar_url"` AvatarURL string `json:"avatar_url,omitempty"`
TTS bool `json:"tts"` TTS bool `json:"tts"`
Embeds []DiscordEmbed `json:"embeds"` Embeds []DiscordEmbed `json:"embeds"`
} }

Loading…
Cancel
Save