diff --git a/discord/activity.go b/discord/activity.go index 0f4f019b..8e0a9196 100644 --- a/discord/activity.go +++ b/discord/activity.go @@ -27,7 +27,7 @@ type Activity struct { ID string `json:"id"` Name string `json:"name"` Type ActivityType `json:"type"` - URL *string `json:"url"` + URL *string `json:"url,omitempty"` CreatedAt time.Time `json:"created_at"` Timestamps *ActivityTimestamps `json:"timestamps,omitempty"` SyncID *string `json:"sync_id,omitempty"` @@ -40,7 +40,7 @@ type Activity struct { Secrets *ActivitySecrets `json:"secrets,omitempty"` Instance *bool `json:"instance,omitempty"` Flags ActivityFlags `json:"flags,omitempty"` - Buttons []string `json:"buttons"` + Buttons []string `json:"buttons,omitempty"` } func (a *Activity) UnmarshalJSON(data []byte) error {