lib/socrates/core/state.rb in socrates-0.1.17 vs lib/socrates/core/state.rb in socrates-0.1.18
- old
+ new
@@ -49,10 +49,10 @@
@logger.info %Q(#{@session.channel} send: "#{format_for_logging(message)}")
@adapter.queue_message(@session, message, send_now: send_now)
end
- def send_message(to:, message:) # TODO: direct_message? send_dm?
+ def send_message(to:, message:)
displayable_to = to.respond_to?(:id) ? to.id : to
@logger.info %Q(#{@session.channel} send direct to #{displayable_to}: "#{format_for_logging(message)}")
@adapter.queue_direct_message(@session, message, to)
end