/[sudobot]/branches/4.x/src/events/message/MessageBulkDelete.ts
ViewVC logotype

Contents of /branches/4.x/src/events/message/MessageBulkDelete.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (show annotations)
Mon Jul 29 18:52:37 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 532 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 import { Collection, Message } from "discord.js";
2 import DiscordClient from "../../client/Client";
3 import BaseEvent from "../../utils/structures/BaseEvent";
4
5 export default class MessageBulkDeleteEvent extends BaseEvent {
6 constructor() {
7 super('messageDeleteBulk');
8 }
9
10 async run(client: DiscordClient, messages: Collection<string, Message>) {
11 if (!messages.at(0)?.guild || messages.at(0)?.channel.type === 'DM') {
12 return;
13 }
14
15 await client.logger.onBulkDelete(messages);
16 }
17 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26