Parent Directory
|
Revision Log
chore: add old version archive branches (2.x to 9.x-dev)
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 | } |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |