Working on 0.8.x

- Added hook on preCreateChatMessage for the inlineRoll/chatmessage bug
This commit is contained in:
Vlyan
2021-05-23 20:29:16 +02:00
parent 286ee72c9f
commit a62781ba69
5 changed files with 83 additions and 44 deletions

View File

@@ -172,3 +172,6 @@ Hooks.on("renderChatMessage", (message, html, data) => HooksL5r5e.renderChatMess
Hooks.on("renderCombatTracker", (app, html, data) => HooksL5r5e.renderCombatTracker(app, html, data));
Hooks.on("renderCompendium", async (app, html, data) => HooksL5r5e.renderCompendium(app, html, data));
Hooks.on("diceSoNiceRollStart", (messageId, context) => HooksL5r5e.diceSoNiceRollStart(messageId, context));
Hooks.on("preCreateChatMessage", (document, data, options, userId) =>
HooksL5r5e.preCreateChatMessage(document, data, options, userId)
);