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

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

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


module.exports = SlackFormatter