   ### 
   Recursively replace @username with <@UXXXXX> for mentioning users and channels
   ###
-  usernames: (text) ->
+  mentions: (text) ->
     return if text is null # nothing to do
       
     if typeof text is 'string'

    # object passed in, parse each property recursively
    else if typeof text is 'object'
      for key, value of text
        text[key] = @usernames(value)
      text



  Formats outgoing messages
  ###
  outgoing: (message) ->
    @mentions message


module.exports = SlackFormatter