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).

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 months ago (3 children)

Why do you even need any event? You add the message programmatically, so you know exactly when it is added

  • source
  • hideshow 3 child comments
  • [–] [S] 1 point 2 months ago (2 children)

    Because I am still figuring things out, since I am VERY new to javascript. With my current understanding of things, the way I am doing it is the only way I can wrap my brain around.

  • source
  • parent
  • hideshow 2 child comments