From fb1ec00bc90e810b68e487a0091266954461cf2e Mon Sep 17 00:00:00 2001 From: blide Date: Sun, 9 Sep 2018 20:00:55 +0300 Subject: [PATCH] Add omitempty flag to InfoRequest.Avatar --- v1/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v1/types.go b/v1/types.go index da8906f..69fba9a 100644 --- a/v1/types.go +++ b/v1/types.go @@ -148,7 +148,7 @@ type ( InfoRequest struct { Name string `url:"name,omitempty" json:"name"` - Avatar string `url:"avatar_url,omitempty" json:"avatar_url"` + Avatar string `url:"avatar_url,omitempty" json:"avatar_url,omitempty"` Roles []string `url:"roles,omitempty" json:"roles"` }