TextDeform
Function: textDeform()
textDeform(start, end, final, output): [string, number]
Defined in: packages/tagscript/src/lib/Interpreter/engine.ts:64
Replaces the slice between start and end with output.
Parameters
start
number
The index the tag starts at.
end
number
The index the tag ends at.
final
string
The message as rendered so far.
output
string
The text to splice in.
Returns
[string, number]
The new message, and by how much the text after the tag shifted.