Skip to content

Commit

Permalink
listeners(messageDeleteBulk): update typings
Browse files Browse the repository at this point in the history
Signed-off-by: TRACTION <[email protected]>
  • Loading branch information
iamtraction committed Sep 28, 2024
1 parent 611b00a commit 195880d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/listeners/messageDeleteBulk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author TRACTION (iamtraction)
* @copyright 2022
*/
import { Collection, GuildTextBasedChannel, Message, PartialMessage } from "discord.js";
import { GuildTextBasedChannel, Message, OmitPartialGroupDMChannel, PartialMessage, ReadonlyCollection } from "discord.js";
import { Listener } from "@bastion/tesseract";

import { logGuildEvent } from "../utils/guilds.js";
Expand All @@ -12,7 +12,7 @@ class MessageDeleteBulkListener extends Listener<"messageDeleteBulk"> {
super("messageDeleteBulk");
}

public async exec(messages: Collection<string, Message<boolean> | PartialMessage>, channel: GuildTextBasedChannel): Promise<void> {
public async exec(messages: ReadonlyCollection<string, OmitPartialGroupDMChannel<Message<boolean> | PartialMessage>>, channel: GuildTextBasedChannel): Promise<void> {
await logGuildEvent(channel.guild, {
title: "Messages Cleared",
fields: [
Expand Down

0 comments on commit 195880d

Please sign in to comment.