discord.js
Version:
A powerful library for interacting with the Discord API
27 lines (21 loc) • 680 B
JavaScript
;
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;