MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / execute

Function execute

src/events/roleDelete.js:10–30  ·  view source on GitHub ↗
(role)

Source from the content-addressed store, hash-verified

8 once: false,
9
10 async execute(role) {
11 try {
12 if (!role.guild) return;
13
14 const lines = buildRoleAuditLines(role, { includeMemberCount: true });
15
16 await logEvent({
17 client: role.client,
18 guildId: role.guild.id,
19 eventType: EVENT_TYPES.ROLE_DELETE,
20 data: {
21 title: 'Role Deleted',
22 headline: `**${role.name}** was deleted`,
23 lines,
24 },
25 });
26
27 } catch (error) {
28 logger.error('Error in roleDelete event:', error);
29 }
30 }
31};

Callers

nothing calls this directly

Calls 2

buildRoleAuditLinesFunction · 0.90
logEventFunction · 0.90

Tested by

no test coverage detected