message.type has been renamed message.style, and with it the CHAT_MESSAGE_TYPES constant to CHAT_MESSAGE_STYLES.
I also found that message seemed to be correct (rather than data) in a web debugger for preCreateChatMessage.
Warning: this exact commit is untested. I tested these changes by applying them to the built/bundled polyglot.js (as downloaded and installed by FoundryVTT). I tried to be very careful about ensuring I was making the same changes.
message.type
has been renamedmessage.style
, and with it theCHAT_MESSAGE_TYPES
constant toCHAT_MESSAGE_STYLES
.I also found that
message
seemed to be correct (rather thandata
) in a web debugger for preCreateChatMessage.Warning: this exact commit is untested. I tested these changes by applying them to the built/bundled polyglot.js (as downloaded and installed by FoundryVTT). I tried to be very careful about ensuring I was making the same changes.