Add omitempty to channel_id in MessageReference struct (#1002)
This commit is contained in:
parent
f60fb54c52
commit
c0803d021f
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ type MessageApplication struct {
|
||||||
// MessageReference contains reference data sent with crossposted messages
|
// MessageReference contains reference data sent with crossposted messages
|
||||||
type MessageReference struct {
|
type MessageReference struct {
|
||||||
MessageID string `json:"message_id"`
|
MessageID string `json:"message_id"`
|
||||||
ChannelID string `json:"channel_id"`
|
ChannelID string `json:"channel_id,omitempty"`
|
||||||
GuildID string `json:"guild_id,omitempty"`
|
GuildID string `json:"guild_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue