Skip to content

Commit

Permalink
types(Message): correct bulkDelete return type (v13) (#8469)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedGuy12 committed Aug 10, 2022
1 parent 9ce7e5e commit 03c59e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/structures/interfaces/TextBasedChannel.js
Expand Up @@ -284,7 +284,7 @@ class TextBasedChannel {
* @param {Collection<Snowflake, Message>|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<Collection<Snowflake, Message>>} Returns the deleted messages
* @returns {Promise<Collection<Snowflake, Message|undefined>>} Returns the deleted messages
* @example
* // Bulk delete messages
* channel.bulkDelete(5)
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -3537,7 +3537,7 @@ export interface TextBasedChannelFields extends PartialTextBasedChannelFields {
bulkDelete(
messages: Collection<Snowflake, Message> | readonly MessageResolvable[] | number,
filterOld?: boolean,
): Promise<Collection<Snowflake, Message>>;
): Promise<Collection<Snowflake, Message | PartialMessage | undefined>>;
createMessageComponentCollector<T extends MessageComponentTypeResolvable = 'ACTION_ROW'>(
options?: MessageChannelCollectorOptionsParams<T, true>,
): InteractionCollector<MappedInteractionTypes[T]>;
Expand Down

0 comments on commit 03c59e3

Please sign in to comment.