commit
This commit is contained in:
parent
a15c733e45
commit
2a5130cbda
2838 changed files with 288613 additions and 0 deletions
26
node_modules/discord.js/src/structures/SelectMenuInteraction.js
generated
vendored
Normal file
26
node_modules/discord.js/src/structures/SelectMenuInteraction.js
generated
vendored
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue