From cd2551461d30adf5972bb49e58c5b415a8e66185 Mon Sep 17 00:00:00 2001 From: Douglas Danger Manley Date: Sun, 13 Dec 2020 14:00:44 -0500 Subject: [PATCH] Add the email and phone_number fields to the Member structure These fields aren't _returned_ with any member-related calls; however, they are used when _adding_ a member to a group. For example, you can add a member to a group by email address, but you need to set the "email" property. Ditto for "phone_number". --- json.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/json.go b/json.go index 501ec40..82d8145 100755 --- a/json.go +++ b/json.go @@ -89,6 +89,8 @@ type Member struct { AutoKicked bool `json:"autokicked,omitempty"` AppInstalled bool `json:"app_installed,omitempty"` GUID string `json:"guid,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` // Only used when searching for the member to add to a group. + Email string `json:"email,omitempty"` // Only used when searching for the member to add to a group. } func (m Member) String() string {