From e4450c8417624b71d779cb4f41692538f9165e10 Mon Sep 17 00:00:00 2001 From: sowgro Date: Sat, 2 Sep 2023 19:12:47 -0400 Subject: first commit --- .../src/structures/TextInputComponent.js | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 node_modules/discord.js/src/structures/TextInputComponent.js (limited to 'node_modules/discord.js/src/structures/TextInputComponent.js') diff --git a/node_modules/discord.js/src/structures/TextInputComponent.js b/node_modules/discord.js/src/structures/TextInputComponent.js new file mode 100644 index 0000000..3cc3115 --- /dev/null +++ b/node_modules/discord.js/src/structures/TextInputComponent.js @@ -0,0 +1,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; -- cgit v1.2.3