/[sudobot]/branches/3.x/src/events/guildMember/GuildMemberUpdateEvent.ts
ViewVC logotype

Annotation of /branches/3.x/src/events/guildMember/GuildMemberUpdateEvent.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: 646 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 rakinar2 577 import { GuildMember } from "discord.js";
2     import DiscordClient from "../../client/Client";
3     import BaseEvent from "../../utils/structures/BaseEvent";
4    
5     export default class GuildMemberUpdateEvent extends BaseEvent {
6     constructor() {
7     super('guildMemberUpdate');
8     }
9    
10     async run(client: DiscordClient, oldMember: GuildMember, newMember: GuildMember) {
11     if (newMember.user.bot) {
12     return;
13     }
14    
15     if (newMember.nickname === oldMember.nickname && newMember.user.tag === oldMember.user.tag) {
16     return;
17     }
18    
19     console.log("Here");
20    
21     client.profileFilter.check(newMember);
22     }
23     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26