lib/redd/models/messageable.rb in redd-0.8.8 vs lib/redd/models/messageable.rb in redd-0.9.0.pre.1
- old
+ new
@@ -11,10 +11,10 @@
# @param text [String] the message text
# @param from [Subreddit, nil] the subreddit to send the message on behalf of
def send_message(to:, subject:, text:, from: nil)
params = { to: to, subject: subject, text: text }
params[:from_sr] = from.display_name if from
- @client.post('/api/compose', params)
+ client.post('/api/compose', params)
end
end
end
end