Add omitempty to MessageReference's GuildID field
Direct Messages do not have the **guild_id** field for Message Referencing / the new Reply feature. __Instead it is only **message_id** and **guild_id**__
This commit is contained in:
parent
31f70d4394
commit
26be533516
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ type MessageApplication struct {
|
|||
type MessageReference struct {
|
||||
MessageID string `json:"message_id"`
|
||||
ChannelID string `json:"channel_id"`
|
||||
GuildID string `json:"guild_id"`
|
||||
GuildID string `json:"guild_id,omitempty"`
|
||||
}
|
||||
|
||||
// Reference returns MessageReference of given message
|
||||
|
|
Loading…
Reference in a new issue