Webpack build for branch master: 4e5556ba09

This commit is contained in:
Travis CI 2017-07-08 05:18:21 +00:00
parent 1b80e4e339
commit 55df670776
2 changed files with 28 additions and 25 deletions

View file

@ -7523,9 +7523,8 @@ class TextBasedChannel {
this.messages.set(message.id, message); this.messages.set(message.id, message);
return message; return message;
} }
}
exports.applyToClass = (structure, full = false, ignore = []) => { static applyToClass(structure, full = false, ignore = []) {
const props = ['send']; const props = ['send'];
if (full) { if (full) {
props.push( props.push(
@ -7546,9 +7545,13 @@ exports.applyToClass = (structure, full = false, ignore = []) => {
} }
for (const prop of props) { for (const prop of props) {
if (ignore.includes(prop)) continue; 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;
/***/ }), /***/ }),

File diff suppressed because one or more lines are too long