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/SelectMenuComponent.js | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 node_modules/discord.js/src/structures/SelectMenuComponent.js (limited to 'node_modules/discord.js/src/structures/SelectMenuComponent.js') 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; -- cgit v1.2.3