code: func (m *MMClient) GetTeamFromChannel(channelId string) string { //nolint:golint
  	m.RLock()
  	defer m.RUnlock()
  	var channels []*model.Channel
  	for _, t := range m.OtherTeams {
  		channels = append(channels, t.Channels...)
  		if t.MoreChannels != nil {
  			channels = append(channels, t.MoreChannels...)
  		}
  		for _, c := range channels {
  			if c.Id == channelId {
  				if c.Type == model.CHANNEL_GROUP {
  					return "G"
  				}
  				return t.Id
  			}
  		}
  		channels = nil
  	}
  	return ""
  }
docs: // GetTeamFromChannel returns teamId belonging to channel (DM channels have no teamId).