func (m *Members) Add(member *Member) {
	m.mux.Lock()
	var exists bool
	for _, m := range m.Members {
		if m.ID == member.ID {
			exists = true
		}
	}

	if !exists {
		m.Members = append(m.Members, *member)
	}
	m.mux.Unlock()
}
// Add appends a member to the Members struct.
// It will also removes the duplication of the Slack ID.
Add appends a member to the Members struct.
It will also removes the duplication of the Slack ID.
// Add appends a member to the Members struct . // It will also removes the duplication of the Slack ID .
func (m *Members) Add(member *Member) {
	m.mux.Lock()
	var exists bool
	for _, m := range m.Members {
		if m.ID == member.ID {
			exists = true
		}
	}
	if !exists {
		m.Members = append(m.Members, *member)
	}
	m.mux.Unlock()
}
func ( m * Members ) Add ( member * Member ) { m . mux . Lock ( ) var exists bool for _ , m := range m . Members { if m . ID == member . ID { exists = true } } if ! exists { m . Members = append ( m . Members , * member ) } m . mux . Unlock ( ) }
Add appends a member to the Members struct.
Add appends a member to the Members struct .