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: [