Remove DMChannel.bulkDelete and GroupDMChannel.bulkDelete

This commit is contained in:
Amish Shah
2017-01-09 18:20:05 +00:00
parent 391b618b3f
commit b5026909a1
3 changed files with 6 additions and 5 deletions

View File

@@ -372,7 +372,7 @@ class TextBasedChannel {
}
}
exports.applyToClass = (structure, full = false) => {
exports.applyToClass = (structure, full = false, ignore = []) => {
const props = ['send', 'sendMessage', 'sendEmbed', 'sendFile', 'sendCode'];
if (full) {
props.push(
@@ -391,6 +391,7 @@ exports.applyToClass = (structure, full = false) => {
);
}
for (const prop of props) {
if (ignore.includes(prop)) continue;
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
}
};