/[sudobot]/branches/2.x/src/events/message/MessageDeleteEvent.ts
ViewVC logotype

Annotation of /branches/2.x/src/events/message/MessageDeleteEvent.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (hide annotations)
Mon Jul 29 18:52:37 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 675 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 rakinar2 577 import BaseEvent from '../../utils/structures/BaseEvent';
2     import { FileOptions, Message } from 'discord.js';
3     import DiscordClient from '../../client/Client';
4     import CommandOptions from '../../types/CommandOptions';
5     import path from 'path';
6     import MessageEmbed from '../../client/MessageEmbed';
7    
8     export default class MessageDeleteEvent extends BaseEvent {
9     constructor() {
10     super('messageDelete');
11     }
12    
13     async run(client: DiscordClient, message: Message) {
14     if (message.author.bot || !message.guild || message.channel.type === 'DM' || (global as any).deletingMessages === true)
15     return;
16    
17     await client.logger.logDelete(message);
18     }
19     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26