From 88444cdd2692fe996b4a1c4bc373e66af83cda7b Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Date: Sun, 14 May 2017 19:04:57 -0400 Subject: [PATCH] Fix awaitMessages (#1493) --- src/structures/interfaces/TextBasedChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index 226f67b65..eb8296681 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -339,7 +339,7 @@ class TextBasedChannel { */ awaitMessages(filter, options = {}) { return new Promise((resolve, reject) => { - const collector = this.createCollector(filter, options); + const collector = this.createMessageCollector(filter, options); collector.once('end', (collection, reason) => { if (options.errors && options.errors.includes(reason)) { reject(collection);