The preferred way is to use your emoteset from USERSTATE (that you can get with the commands capability) to get a list of emotes the client can use and replace them in the message using the emote codes yourself. The other option is to open another connection to the channel to listen to your own messages, though it is both a bit unreliable and will be delayed.