From 96ca9f9963fd1ca018bf15e48b4a4ec7c664f39d Mon Sep 17 00:00:00 2001 From: RedGuy12 Date: Wed, 10 Aug 2022 12:05:47 -0500 Subject: [PATCH 1/2] types(Message): correct `bulkDelete` return type (v13) --- src/structures/interfaces/TextBasedChannel.js | 2 +- typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index b50555c9bcb1..b1397c15924c 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -284,7 +284,7 @@ class TextBasedChannel { * @param {Collection|MessageResolvable[]|number} messages * Messages or number of messages to delete * @param {boolean} [filterOld=false] Filter messages to remove those which are older than two weeks automatically - * @returns {Promise>} Returns the deleted messages + * @returns {Promise>} Returns the deleted messages * @example * // Bulk delete messages * channel.bulkDelete(5) diff --git a/typings/index.d.ts b/typings/index.d.ts index d67f2fd44250..c6a229fb6e66 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3537,7 +3537,7 @@ export interface TextBasedChannelFields extends PartialTextBasedChannelFields { bulkDelete( messages: Collection | readonly MessageResolvable[] | number, filterOld?: boolean, - ): Promise>; + ): Promise>; createMessageComponentCollector( options?: MessageChannelCollectorOptionsParams, ): InteractionCollector; From 68ce0880580ba003be33e10eaeae88987faab132 Mon Sep 17 00:00:00 2001 From: RedGuy12 Date: Wed, 10 Aug 2022 13:35:51 -0500 Subject: [PATCH 2/2] Update index.d.ts --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index c6a229fb6e66..ba4fba762154 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3537,7 +3537,7 @@ export interface TextBasedChannelFields extends PartialTextBasedChannelFields { bulkDelete( messages: Collection | readonly MessageResolvable[] | number, filterOld?: boolean, - ): Promise>; + ): Promise>; createMessageComponentCollector( options?: MessageChannelCollectorOptionsParams, ): InteractionCollector;