Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to call exportToJSON on a ChatMessage throws an error #8762

Closed
Fyorl opened this issue Jan 20, 2023 · 0 comments
Closed

Attempting to call exportToJSON on a ChatMessage throws an error #8762

Fyorl opened this issue Jan 20, 2023 · 0 comments
Assignees
Labels
api Issues related to the API used by Mod Devs bug Functionality which is not working as intended chat Issues related to Chat and Chat Messages

Comments

@Fyorl
Copy link
Contributor

Fyorl commented Jan 20, 2023

Originally reported by Mana#4176 https://discord.com/channels/170995199584108546/956306859491471420/1064900367386681507

ALL MODULES DISABLED? true
OS, Hosting, Browser (if applicable): any
Short Description of bug: ChatMesage.exportToJSON() errors
Simple steps to reproduce the bug:

game.messages.contents[0].exportToJSON();

Screenshots and/or console errors:

foundry.js:13647 Uncaught TypeError: Cannot read properties of undefined (reading 'slugify')
    at ChatMessage.exportToJSON (foundry.js:13647:61)

This was mostly relevant for me to export a chat message which was causing a system to error on such to attach to a bug report.

@Fyorl Fyorl added bug Functionality which is not working as intended chat Issues related to Chat and Chat Messages api Issues related to the API used by Mod Devs labels Jan 20, 2023
@Fyorl Fyorl added this to the Version 10 - Leftovers milestone Jan 20, 2023
@Fyorl Fyorl self-assigned this Apr 20, 2023
@Fyorl Fyorl closed this as completed Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to the API used by Mod Devs bug Functionality which is not working as intended chat Issues related to Chat and Chat Messages
Projects
Status: Done
Development

No branches or pull requests

1 participant