Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MentionableField

Mentionable Field

Hierarchy

  • default
    • MentionableField

Index

Constructors

Properties

Accessors

Constructors

constructor

  • new MentionableField(name: string, description: string, required?: boolean, choices?: choice[]): MentionableField
  • Parameters

    • name: string

      The name of the field

    • description: string

      The description of the field

    • required: boolean = false

      If field is required

    • choices: choice[] = []

      The choices for the field

    Returns MentionableField

Properties

Readonly choices

choices: choice[] = []

Readonly description

description: string

Readonly name

name: string

Readonly required

required: boolean = false

Readonly type

type: 9 = 9

Accessors

rawData

  • get rawData(): { choices: choice[]; description: string; name: string; required: boolean; type: number }
  • The raw object for field data. Used to interact with discord.

    Returns { choices: choice[]; description: string; name: string; required: boolean; type: number }

    • choices: choice[]
    • description: string
    • name: string
    • required: boolean
    • type: number

Generated using TypeDoc