func (g *Guild) MembersByName(name string) (members []*Member) {
	g.RLock()
	defer g.RUnlock()

	for _, member := range g.Members {
		if member.Nick == name || member.User.Username == name {
			members = append(members, member)
		}
	}

	return
}
// MembersByName retrieve a slice of members with same username or nickname
MembersByName retrieve a slice of members with same username or nickname
// MembersByName retrieve a slice of members with same username or nickname
func (g *Guild) MembersByName(name string) (members []*Member) {
	g.RLock()
	defer g.RUnlock()
	for _, member := range g.Members {
		if member.Nick == name || member.User.Username == name {
			members = append(members, member)
		}
	}
	return
}
func ( g * Guild ) MembersByName ( name string ) ( members [ ] * Member ) { g . RLock ( ) defer g . RUnlock ( ) for _ , member := range g . Members { if member . Nick == name || member . User . Username == name { members = append ( members , member ) } } return }
MembersByName retrieve a slice of members with same username or nickname
MembersByName retrieve a slice of members with same username or nickname