Ajouter des données 'opts' supplémentaires à l'événement "DiscourseEvent.on(:post_created)" depuis JavaScript ?

When the property is set depends on how you’re setting it. Post your code for that here, i.e. whatever you’ve put inside api.modifyClass('model:composer', {}).

Keep in mind that when you’re modifying a class on the client, you’re using Ember. If you haven’t already, I suggest a quick peruse of the Ember Guide to see the various hooks and methods available to you in a model, or the controller.