mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
just webpack things (#988)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
264ee8e7f1
commit
2e7472bb1a
@@ -363,9 +363,7 @@ exports.applyToClass = (structure, full = false) => {
|
||||
props.push('createCollector');
|
||||
props.push('awaitMessages');
|
||||
}
|
||||
for (const prop of props) applyProp(structure, prop);
|
||||
for (const prop of props) {
|
||||
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
|
||||
}
|
||||
};
|
||||
|
||||
function applyProp(structure, prop) {
|
||||
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user