arisu/node_modules/discord.js/src/structures/TextInputComponent.js
2025-04-04 19:46:15 +01:00

30 lines
484 B
JavaScript

'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;