mirror of
https://github.com/danbulant/discord.js
synced 2026-07-10 13:41:42 +00:00
Webpack build for branch master: 4e5556ba09
This commit is contained in:
parent
1b80e4e339
commit
55df670776
2 changed files with 28 additions and 25 deletions
|
|
@ -7523,9 +7523,8 @@ class TextBasedChannel {
|
|||
this.messages.set(message.id, message);
|
||||
return message;
|
||||
}
|
||||
}
|
||||
|
||||
exports.applyToClass = (structure, full = false, ignore = []) => {
|
||||
static applyToClass(structure, full = false, ignore = []) {
|
||||
const props = ['send'];
|
||||
if (full) {
|
||||
props.push(
|
||||
|
|
@ -7546,9 +7545,13 @@ exports.applyToClass = (structure, full = false, ignore = []) => {
|
|||
}
|
||||
for (const prop of props) {
|
||||
if (ignore.includes(prop)) continue;
|
||||
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
|
||||
Object.defineProperty(structure.prototype, prop,
|
||||
Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = TextBasedChannel;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue