(role)
| 8 | once: false, |
| 9 | |
| 10 | async execute(role) { |
| 11 | try { |
| 12 | if (!role.guild) return; |
| 13 | |
| 14 | const lines = buildRoleAuditLines(role); |
| 15 | |
| 16 | await logEvent({ |
| 17 | client: role.client, |
| 18 | guildId: role.guild.id, |
| 19 | eventType: EVENT_TYPES.ROLE_CREATE, |
| 20 | data: { |
| 21 | title: 'Role Created', |
| 22 | headline: `${role.toString()} was created`, |
| 23 | lines, |
| 24 | }, |
| 25 | }); |
| 26 | |
| 27 | } catch (error) { |
| 28 | logger.error('Error in roleCreate event:', error); |
| 29 | } |
| 30 | } |
| 31 | }; |
nothing calls this directly
no test coverage detected