From 72346fb47eadb812416054e984ec4ab6663202ea Mon Sep 17 00:00:00 2001 From: Lewdcario Date: Fri, 29 Jun 2018 17:32:56 -0500 Subject: [PATCH] fix(TextBasedChannel): bulkDelete should not return non-Promise --- 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 a44f644e7..fe69ecb19 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -454,7 +454,7 @@ class TextBasedChannel { if (filterOld) { messages = messages.filter(m => Date.now() - Snowflake.deconstruct(m.id).date.getTime() < 1209600000); } - if (messages.length === 0) return new Collection(); + if (messages.length === 0) return Promise.resolve(new Collection()); if (messages.length === 1) { return messages[0].delete().then(() => new Collection([[messages[0].id, messages[0]]])); }