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".
This commit is contained in:
Douglas Danger Manley 2020-12-13 14:00:44 -05:00
parent 2ff9a03a8c
commit cd2551461d

View File

@ -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 {