mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
just webpack things (#988)
This commit is contained in:
parent
264ee8e7f1
commit
2e7472bb1a
1 changed files with 3 additions and 5 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue