Merge pull request #845 from LagSwitchedVirginity/patch-1

Add omitempty to MessageReference's GuildID field
This commit is contained in:
Carson Hoffman 2020-12-17 14:02:21 -05:00 committed by GitHub
commit 8d6815dde7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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