From 195880dc11a05d1509ce5a540fad3c174b236d1c Mon Sep 17 00:00:00 2001 From: TRACTION <19631364+iamtraction@users.noreply.github.com> Date: Sat, 28 Sep 2024 17:57:27 +0530 Subject: [PATCH] listeners(messageDeleteBulk): update typings Signed-off-by: TRACTION <19631364+iamtraction@users.noreply.github.com> --- src/listeners/messageDeleteBulk.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/listeners/messageDeleteBulk.ts b/src/listeners/messageDeleteBulk.ts index 542b8f4ec..10440fbdb 100644 --- a/src/listeners/messageDeleteBulk.ts +++ b/src/listeners/messageDeleteBulk.ts @@ -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"; @@ -12,7 +12,7 @@ class MessageDeleteBulkListener extends Listener<"messageDeleteBulk"> { super("messageDeleteBulk"); } - public async exec(messages: Collection | PartialMessage>, channel: GuildTextBasedChannel): Promise { + public async exec(messages: ReadonlyCollection | PartialMessage>>, channel: GuildTextBasedChannel): Promise { await logGuildEvent(channel.guild, { title: "Messages Cleared", fields: [