Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Question

Index

Properties

Optional dataType

dataType: string

The datatype which will be checked when the question is answered.

Optional length

length: number

If datatype is number, then it will be checked if it's bigger than or equal to the length. If datatype is string, then it will compare the string length to see if it's bigger than or equal to the length.

Optional possibleAnswerRequired

possibleAnswerRequired: boolean

Makes it possible for the user to deviate from possible answers and send their own text. Whether or not a possible answer is required. Only has effect when using reactionMethod = "text"

default

true

Optional possibleAnswers

possibleAnswers: string[]

An array of possible answers for the question. Required for a question with reaction for reactionMethod. When using reactionMethod = "reaction", put a reaction here.

reactionMethod

reactionMethod: "text" | "reaction"

Whether you want the user to type out their response (text) or click on an emoji (reaction).

style

style: "bracket" | "newLine"

Sets the style to either "bracket" or "newLine". Bracket: [Y/n] Newline: 1: a 2: b 3: c

text

text: RichEmbed | string

The question.

Generated using TypeDoc