From 86539504d9d60f8fdc6682e37cdc22eb35e3b136 Mon Sep 17 00:00:00 2001 From: BunnyTheLifeguard <36411819+BunnyTheLifeguard@users.noreply.github.com> Date: Mon, 24 Oct 2022 00:30:03 +0200 Subject: [PATCH] fix: remove embedfield omitempty (#1262) Remove omitempty from Name/value since the Discord API requires both to be submitted. Fixes: #726 --- message.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/message.go b/message.go index d4bce90..fec6f87 100644 --- a/message.go +++ b/message.go @@ -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"` }