/[sudobot]/trunk/src/events/message/MessageReactionAdd.ts
ViewVC logotype

Contents of /trunk/src/events/message/MessageReactionAdd.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (show annotations)
Mon Jul 29 17:28:23 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: application/typescript
File size: 702 byte(s)
Release version 2.0
1 import BaseEvent from '../../utils/structures/BaseEvent';
2 import DiscordClient from '../../client/Client';
3 import { runTimeouts } from '../../utils/setTimeout';
4 import { Message, MessageReaction } from 'discord.js';
5
6 export default class MessageReactionAddEvent extends BaseEvent {
7 constructor() {
8 super('messageReactionAdd');
9 }
10
11 async run(client: DiscordClient, reaction: MessageReaction) {
12 console.log('inside');
13
14 if (!reaction || !reaction.message.guild || reaction.message.channel.type === 'DM') {
15 return;
16 }
17
18 await (client.msg = <Message> reaction.message);
19 await client.starboard.handle(reaction);
20 }
21 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26