Method: Redd::Models::ModMail::Conversation#reply

Defined in:
lib/redd/models/mod_mail.rb

#reply(body, hidden: false, internal: false) ⇒ Object

Add a reply to the ongoing conversation.



22
23
24
25
26
27
28
# File 'lib/redd/models/mod_mail.rb', line 22

def reply(body, hidden: false, internal: false)
  # TODO: merge response into the conversation
  @client.post(
    "/api/mod/conversations/#{get_attribute(:id)}",
    body: body, isAuthorHidden: hidden, isInternal: internal
  ).body
end