Add omitempty to channel_id in MessageReference struct (#1002)

This commit is contained in:
Corbett 2022-08-04 11:51:19 -07:00 committed by GitHub
parent f60fb54c52
commit c0803d021f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -457,7 +457,7 @@ type MessageApplication struct {
// MessageReference contains reference data sent with crossposted messages
type MessageReference struct {
MessageID string `json:"message_id"`
ChannelID string `json:"channel_id"`
ChannelID string `json:"channel_id,omitempty"`
GuildID string `json:"guild_id,omitempty"`
}