From 74f7f5877dd7ca26ba426066b3e1afac1de5ef30 Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Mon, 30 Mar 2020 22:50:46 -0700 Subject: [PATCH] Gateway: Fixed more omitempties for UpdateStatus --- discord/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/user.go b/discord/user.go index 71c432d..8e20be1 100644 --- a/discord/user.go +++ b/discord/user.go @@ -105,11 +105,11 @@ const ( type Activity struct { Name string `json:"name"` Type ActivityType `json:"type"` - URL URL `json:"url"` + URL URL `json:"url,omitempty"` // User only - CreatedAt UnixTimestamp `json:"created_at"` + CreatedAt UnixTimestamp `json:"created_at,omitempty"` Timestamps *ActivityTimestamp `json:"timestamps,omitempty"` ApplicationID Snowflake `json:"application_id,omitempty"`