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

Contents of /branches/2.x/src/events/message/MessageReactionAddEvent.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: 702 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
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