lib/lita/message.rb in lita-3.0.4 vs lib/lita/message.rb in lita-3.1.0

- old
+ new

@@ -79,7 +79,16 @@ def reply_privately(*strings) private_source = source.clone private_source.private_message! @robot.send_messages(private_source, *strings) end + + # Replies by sending the given strings back to the source of the message. + # Each message is prefixed with the user's mention name. + # @param strings [String, Array<String>] The strings to send back. + # @return [void] + # @since 3.1.0 + def reply_with_mention(*strings) + @robot.send_messages_with_mention(source, *strings) + end end end