Skip to content

Commit 33ac2ed

Browse files
committed
omit id from JSON when empty
1 parent 325f54a commit 33ac2ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type SnowflakeObject interface {
77
}
88

99
type DiscordBaseObject struct {
10-
ID Snowflake `json:"id"`
10+
ID Snowflake `json:"id,omitempty"`
1111
}
1212

1313
func (d DiscordBaseObject) GetID() Snowflake {

0 commit comments

Comments
 (0)