lib/chatrix/api/room_actions.rb
# Redacts a room event from the server.
#
# @param room [String] The room to redact the event from.
# @param event [String] The event to redact.
# @param reason [String] The reason for redacting the event.
# @return [String] The ID for the redaction event.
Redacts a room event from the server.
Redacts a room event from the server .
def redact(room, event, reason)
        make_request(
          :put,
          "/rooms/#{room}/redact/#{event}/#{@transaction_id += 1}",
          content: { reason: reason }
        )['event_id']
      end
def redact ( room , event , reason ) make_request ( :put , "/rooms/#{room}/redact/#{event}/#{@transaction_id += 1}" , content : { reason : reason } ) [ 'event_id' ] end
Redacts a room event from the server.
Redacts a room event from the server .
The ID for the redaction event.
The ID for the redaction event .
String
room
The room to redact the event from.
The room to redact the event from .
event
The event to redact.
The event to redact .
reason
The reason for redacting the event.
The reason for redacting the event .