Parent Directory
|
Revision Log
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 |