editChat

fun editChat(regexp: NativeRegExp, vararg replacements: Message)

Edits an already sent chat message matched by regexp.

Parameters

regexp

the regex object to match to the message

replacements

the new message(s) to be put in replace of the old one


fun editChat(toReplace: String, vararg replacements: Message)

Edits an already sent chat message by the text of the chat

Parameters

toReplace

the unformatted text of the message to be replaced

replacements

the new message(s) to be put in place of the old one


fun editChat(toReplace: Message, vararg replacements: Message)

Edits an already sent chat message by the Message

Parameters

toReplace

the message to be replaced

replacements

the new message(s) to be put in place of the old one


fun editChat(chatLineId: Int, vararg replacements: Message)

Edits an already sent chat message by its chat line id

Parameters

chatLineId

the chat line id of the message to be replaced

replacements

the new message(s) to be put in place of the old one