Discord internals updated their structure so the ID selection has to change in order to work. They also added error checking to the textarea so doing $(textarea).val("something") does not work anymore. I used the workaround of using document.execCommand("insertText" .....) with the selection being at the beginning so nothing is overwritten.
Discord internals updated their structure so the ID selection has to change in order to work. They also added error checking to the textarea so doing
$(textarea).val("something")
does not work anymore. I used the workaround of usingdocument.execCommand("insertText" .....)
with the selection being at the beginning so nothing is overwritten.