Skip to content

Commit

Permalink
fix: remove omitempty from non-optional MessageEmbed* fields (#1001)
Browse files Browse the repository at this point in the history
Co-authored-by: rigormorrtiss <rigormorrtiss@gmail.com>
  • Loading branch information
FedorLap2006 and rigormorrtiss committed Apr 5, 2022
1 parent c3c6c1b commit 79784e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions message.go
Expand Up @@ -342,15 +342,15 @@ type MessageEmbedFooter struct {

// MessageEmbedImage is a part of a MessageEmbed struct.
type MessageEmbedImage struct {
URL string `json:"url,omitempty"`
URL string `json:"url"`
ProxyURL string `json:"proxy_url,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
}

// MessageEmbedThumbnail is a part of a MessageEmbed struct.
type MessageEmbedThumbnail struct {
URL string `json:"url,omitempty"`
URL string `json:"url"`
ProxyURL string `json:"proxy_url,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Expand All @@ -372,7 +372,7 @@ type MessageEmbedProvider struct {
// MessageEmbedAuthor is a part of a MessageEmbed struct.
type MessageEmbedAuthor struct {
URL string `json:"url,omitempty"`
Name string `json:"name,omitempty"`
Name string `json:"name"`
IconURL string `json:"icon_url,omitempty"`
ProxyIconURL string `json:"proxy_icon_url,omitempty"`
}
Expand Down

0 comments on commit 79784e2

Please sign in to comment.