flamewave000 / dragonflagon-fvtt

DragonFlagon FoundryVTT Modules
BSD 3-Clause "New" or "Revised" License
64 stars 59 forks source link

DF Chat Enhancements triggers PF2e Deprecation warning #410

Closed esheyw closed 1 year ago

esheyw commented 1 year ago

DF CE 4.0.0, PF2e 4.2.6

Error: You are accessing the ChatMessagePF2e#data object which is no longer used. Since V10 the Document class and its contained DataModel are merged into a combined data structure. You should now reference keys which were previously contained within the data object directly.
    at logCompatibilityWarning (commons.js:1692:19)
    at ChatMessagePF2e._logV10CompatibilityWarning (commons.js:6617:14)
    at get data [as data] (commons.js:6517:24)
    at WhisperTruncation._messageRender (whisper-trunc.ts:46:78)
    at #call (foundry.js:724:20)
    at Hooks.call (foundry.js:706:38)
    at ChatMessagePF2e.getHTML (foundry.js:18091:11)
    at async 🎁ChatMessage.prototype.getHTML#df-chat-enhance (PlayerColor.ts:59:10)
    at async ChatMessagePF2e.getHTML (main.bundle.js:1:568443)
    at async ChatLogPF2e._ChatLog_postOne (scroll-manage.ts:113:9)

one of these pops on every chat message sent.