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]]])); }