summaryrefslogtreecommitdiff
path: root/node_modules/discord.js/src/structures/TextInputComponent.js
blob: 3cc311575b8cf4927b211f1b3b94a85ebabf7235 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'use strict';

const Component = require('./Component');

/**
 * Represents a text input component.
 * @extends {Component}
 */
class TextInputComponent extends Component {
  /**
   * The custom id of this text input
   * @type {string}
   * @readonly
   */
  get customId() {
    return this.data.custom_id;
  }

  /**
   * The value for this text input
   * @type {string}
   * @readonly
   */
  get value() {
    return this.data.value;
  }
}

module.exports = TextInputComponent;