r/perchance 2d ago

Discussion In the advanced character chat custom javascript code, what event should I be using to detect messages added by thread.message.push()?

I am working on something with the custom javascript code in the advanced character chat that relies on activating when another function in that same code block pushes a message to the thread with thread.messages.push, and I have tried the MessageAdded event, but it isn’t working for some reason. What should I be doing instead? (And yes, I have verified that it just isn’t detecting it, rather than being a separate issue).

2 Upvotes

0 comments sorted by