fix: remove embedfield omitempty (#1262)

Remove omitempty from Name/value since the Discord API requires both to be submitted.

Fixes: #726
This commit is contained in:
BunnyTheLifeguard 2022-10-24 00:30:03 +02:00 committed by GitHub
parent 20aaca3b40
commit 86539504d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -389,8 +389,8 @@ type MessageEmbedAuthor struct {
// MessageEmbedField is a part of a MessageEmbed struct.
type MessageEmbedField struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
Name string `json:"name"`
Value string `json:"value"`
Inline bool `json:"inline,omitempty"`
}