title: Argument labels do not match any available overloads
body: <p>I am working on a messaging app using JSQMessagesViewController, and I want to associate another variable, an Integer <code>score</code>, with each message (along with the defaults such as <code>senderID</code>, <code>text</code>, and <code>displayName</code>). This is how I attempt to implement this:</p>
  
  <pre><code>func addMessage(id: String, text: String, displayName: String, score: Int) {
  
      // Make sure the character count is between 10 and 140, then add message to message list to display
      if (text.characters.count &lt;= 10 || text.characters.count &gt;= 140) {
  
      }
      else {
          let message = JSQMessage(senderId: id, displayName: displayName, text: text, score: score)
          messages.append(message)
      }
  
  }
  </code></pre>
  
  <p>However I am getting the following error message:</p>
  
  <p><code>Argument labels '(senderId:, displayName:, text:, score:)' do not match any available overloads</code></p>
  
  <p>I can only assume that this is because there is some pre-set definition as to what data the JSQMessage object can hold, I am just unsure how to override it so that I can associate an additional variable with my messages. </p>
  
  <p>Note: I tried to directly change the code in the JSQMessagesViewController framework itself (within the <code>JSQMessage.h</code> and <code>JSQMessage.m</code> files) to add an extra variable but this just causes more errors and I am afraid I will mess something up.</p>
  
  <p>Any solutions?</p>
  
  <p>Thanks in advance. </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I think I figured out how to do it!  </p>
  
  <pre><code>import UIKit
  import JSQMessagesViewController
  
  class CustomMessage: JSQMessage {
      var score : Int
  
      init(senderId:String, displayName:String, text:String, score:Int) {
          self.score = score
          super.init(senderId:senderId, displayName:displayName, text:text)
      }
  
      required init?(coder aDecoder: NSCoder) {
          fatalError("init(coder:) has not been implemented")
      }
  }
  </code></pre>
  
  <p>However I am now getting an error after <code>super.init</code> as such: <code>must call a designated initializer of the superclass 'JSQMessage'</code></p>