Skip to content

Commit

Permalink
Add omitempty to channel_id in MessageReference struct (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
corbmr committed Aug 4, 2022
1 parent f60fb54 commit c0803d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message.go
Expand Up @@ -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"`
}

Expand Down

0 comments on commit c0803d0

Please sign in to comment.