discord.js
Version:
A powerful library for interacting with the Discord API
30 lines (25 loc) • 484 B
JavaScript
;
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;