/[sudobot]/branches/4.x/src/events/role/RoleUpdateEvent.ts
ViewVC logotype

Contents of /branches/4.x/src/events/role/RoleUpdateEvent.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: 549 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 import { Collection, Message, NonThreadGuildBasedChannel, Role } from "discord.js";
2 import DiscordClient from "../../client/Client";
3 import BaseEvent from "../../utils/structures/BaseEvent";
4
5 export default class RoleUpdateEvent extends BaseEvent {
6 constructor() {
7 super('roleUpdate');
8 }
9
10 async run(client: DiscordClient, oldRole: Role, newRole: Role) {
11 if (oldRole.name === newRole.name && oldRole.icon === newRole.icon)
12 return;
13
14 await client.logger.onRoleUpdate(oldRole, newRole);
15 }
16 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26