From 2e7472bb1a06ad68fc1ee6b43bfa16c2e73a70e3 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Wed, 14 Dec 2016 18:40:47 -0600 Subject: [PATCH] just webpack things (#988) --- src/structures/interface/TextBasedChannel.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/structures/interface/TextBasedChannel.js b/src/structures/interface/TextBasedChannel.js index f8ebdb4ae..308545f05 100644 --- a/src/structures/interface/TextBasedChannel.js +++ b/src/structures/interface/TextBasedChannel.js @@ -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)); -}