1 |
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 |
} |