summaryrefslogtreecommitdiff
path: root/node_modules/discord.js/src/structures/SelectMenuComponent.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/discord.js/src/structures/SelectMenuComponent.js')
-rw-r--r--node_modules/discord.js/src/structures/SelectMenuComponent.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/node_modules/discord.js/src/structures/SelectMenuComponent.js b/node_modules/discord.js/src/structures/SelectMenuComponent.js
new file mode 100644
index 0000000..2cd8097
--- /dev/null
+++ b/node_modules/discord.js/src/structures/SelectMenuComponent.js
@@ -0,0 +1,26 @@
+'use strict';
+
+const process = require('node:process');
+const StringSelectMenuComponent = require('./StringSelectMenuComponent');
+
+let deprecationEmitted = false;
+
+/**
+ * @deprecated Use {@link StringSelectMenuComponent} instead.
+ * @extends {StringSelectMenuComponent}
+ */
+class SelectMenuComponent extends StringSelectMenuComponent {
+ constructor(...params) {
+ super(...params);
+
+ if (!deprecationEmitted) {
+ process.emitWarning(
+ 'The SelectMenuComponent class is deprecated. Use StringSelectMenuComponent instead.',
+ 'DeprecationWarning',
+ );
+ deprecationEmitted = true;
+ }
+ }
+}
+
+module.exports = SelectMenuComponent;