RPG Dice RollerRPG Dice Roller
Home
Guide
API
  • Contributing
  • Code of Conduct
GitHub
Home
Guide
API
  • Contributing
  • Code of Conduct
GitHub
  • API

    • Introduction
    • ComparePoint
    • Description
    • DiceRoll
    • DiceRoller
    • RollGroup
  • dice

    • FudgeDice
    • PercentileDice
    • StandardDice
  • exceptions

    • CompareOperatorError
    • DataFormatError
    • DieActionValueError
    • NotationError
    • RequiredArgumentError
  • modifiers

    • ComparisonModifier
    • CriticalFailureModifier
    • CriticalSuccessModifier
    • DropModifier
    • ExplodeModifier
    • KeepModifier
    • MaxModifier
    • MinModifier
    • Modifier
    • ReRollModifier
    • SortingModifier
    • TargetModifier
    • UniqueModifier
    • modifier-flags
  • parser

    • Parser
  • results

    • ResultGroup
    • RollResult
    • RollResults
  • traits

    • HasDescription
  • utilities

    • ExportFormats
    • NumberGenerator
    • math
    • utils

Description

Description

Represents a Roll / Roll group description.

Kind: global class

  • Description
    • new Description(text, [type])
    • .text ⇒ string
    • .text
    • .type ⇒ string
    • .type
    • .toJSON() ⇒ Object
    • .toString() ⇒ string

new Description(text, [type])

Create a Description instance.

ParamTypeDefault
textstring
[type]string"inline"

description.text ⇒ string

The description text.

Kind: instance property of Description

description.text

Set the description text.

Kind: instance property of Description

ParamType
textstring | number

description.type ⇒ string

The description type.

Kind: instance property of Description
Returns: string - "inline" or "multiline"

description.type

Set the description type.

Kind: instance property of Description

ParamType
typestring

description.toJSON() ⇒ Object

Return an object for JSON serialising.

This is called automatically when JSON encoding the object.

Kind: instance method of Description

description.toString() ⇒ string

Return the String representation of the object.

This is called automatically when casting the object to a string.

Kind: instance method of Description
See: text

Edit this page
Last Updated: 07/02/2026, 21:45
Prev
ComparePoint
Next
DiceRoll