Add a utility to the API for inferring a chat message's roll mode (and update the docs)
This commit is contained in:
parent
cbc2691a0e
commit
8c42f1b240
3 changed files with 41 additions and 3 deletions
|
|
@ -13,6 +13,7 @@ import { UserFlagDatabase } from "./utils/databases/UserFlag.mjs";
|
|||
import { barGraphSchema, numberBucketSchema, rowSchema, stringBucketSchema, tableSchema } from "./utils/databases/model.mjs";
|
||||
import { determinePrivacyFromRollMode, filterPrivateRows, PrivacyMode } from "./utils/privacy.mjs";
|
||||
import { validateBucketConfig, validateValue } from "./utils/buckets.mjs";
|
||||
import { inferRollMode } from "./utils/inferRollMode.mjs";
|
||||
|
||||
const { deepFreeze } = foundry.utils;
|
||||
|
||||
|
|
@ -25,6 +26,7 @@ export const api = deepFreeze({
|
|||
},
|
||||
utils: {
|
||||
determinePrivacyFromRollMode,
|
||||
inferRollMode,
|
||||
filterPrivateRows,
|
||||
validateValue,
|
||||
validateBucketConfig,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue