Skip to content

drawDescription

Jason Godesky edited this page Jul 17, 2026 · 2 revisions

drawDescription is a wrapper that fetches the specified table, draws the first result from it, and returns the description from that result.

Parameters

uuid: string

The UUID of the roll table you want to roll on (should begin with RollTable.).

Returns

A Promise that resolves either the description of the first result drawn, or null if something went awry (e.g., the table could not be found, no results were drawn, or the result drawn did not have a description).

Examples

import { drawDescription } from '@revolutionarygamesco/common-foundryvtt'

await drawDescription('RollTable.1111111111111111') // 'Dread Gazebo'

Clone this wiki locally