summaryrefslogtreecommitdiff
path: root/node_modules/discord.js/src/structures/TextInputComponent.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/discord.js/src/structures/TextInputComponent.js')
-rw-r--r--node_modules/discord.js/src/structures/TextInputComponent.js29
1 files changed, 29 insertions, 0 deletions
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;