Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Foundry Virtual Tabletop
Foundry Virtual Tabletop
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 580
    • Issues 580
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1
    • Merge Requests 1
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Foundry Network
  • Foundry Virtual TabletopFoundry Virtual Tabletop
  • Issues
  • #1942

Closed
Open
Opened Jan 10, 2020 by Youness Alaoui@kakarotoContributor

Add a hook for chat bubble renders

When using polyglot, it scrambles the text that gets sent to the chat, but it still appears plaintext in the chat bubble. Would need to add a hook so we can modify the chat bubbles content or prevent it from appearing.

Hook Usage

// Example 1 - Modify the bubble appearance
Hooks.on("chatBubble", (token, html, message, options) => {
  html.html("<p>SOMETHING ELSE!</p>");
});

// Example 2 - Prevent this particular bubble
Hooks.on("chatBubble", (token, html, message, options) => {
  return false;
});
Edited Jan 20, 2020 by Andrew
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Beta 0.4.6
Milestone
Beta 0.4.6 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: foundrynet/foundryvtt#1942