This commit is contained in:
Lukian LEIZOUR 2023-01-29 00:57:47 +01:00
parent a15c733e45
commit 2a5130cbda
2838 changed files with 288613 additions and 0 deletions

View file

@ -0,0 +1,26 @@
'use strict';
const process = require('node:process');
const StringSelectMenuInteraction = require('./StringSelectMenuInteraction');
let deprecationEmitted = false;
/**
* @deprecated Use {@link StringSelectMenuInteraction} instead.
* @extends {StringSelectMenuInteraction}
*/
class SelectMenuInteraction extends StringSelectMenuInteraction {
constructor(...params) {
super(...params);
if (!deprecationEmitted) {
process.emitWarning(
'The SelectMenuInteraction class is deprecated, use StringSelectMenuInteraction instead.',
'DeprecationWarning',
);
deprecationEmitted = true;
}
}
}
module.exports = SelectMenuInteraction;