Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 8653950

Browse files
authored
fix: remove embedfield omitempty (bwmarrin#1262)
Remove omitempty from Name/value since the Discord API requires both to be submitted. Fixes: bwmarrin#726
1 parent 20aaca3 commit 8653950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

message.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ type MessageEmbedAuthor struct {
389389

390390
// MessageEmbedField is a part of a MessageEmbed struct.
391391
type MessageEmbedField struct {
392-
Name string `json:"name,omitempty"`
393-
Value string `json:"value,omitempty"`
392+
Name string `json:"name"`
393+
Value string `json:"value"`
394394
Inline bool `json:"inline,omitempty"`
395395
}
396396

0 commit comments

Comments
 (0)