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,32 +7523,35 @@ class TextBasedChannel {
this.messages.set(message.id, message);
return message;
}
static applyToClass(structure, full = false, ignore = []) {
const props = ['send'];
if (full) {
props.push(
'_cacheMessage',
'acknowledge',
'fetchMessages',
'fetchMessage',
'search',
'bulkDelete',
'startTyping',
'stopTyping',
'typing',
'typingCount',
'fetchPinnedMessages',
'createMessageCollector',
'awaitMessages'
);
}
for (const prop of props) {
if (ignore.includes(prop)) continue;
Object.defineProperty(structure.prototype, prop,
Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
}
}
}
exports.applyToClass = (structure, full = false, ignore = []) => {
const props = ['send'];
if (full) {
props.push(
'_cacheMessage',
'acknowledge',
'fetchMessages',
'fetchMessage',
'search',
'bulkDelete',
'startTyping',
'stopTyping',
'typing',
'typingCount',
'fetchPinnedMessages',
'createMessageCollector',
'awaitMessages'
);
}
for (const prop of props) {
if (ignore.includes(prop)) continue;
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
}
};
module.exports = TextBasedChannel;
/***/ }),

File diff suppressed because one or more lines are too long