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

Function formatEventType

src/services/loggingService.js:341–350  ·  view source on GitHub ↗
(eventType)

Source from the content-addressed store, hash-verified

339}
340
341function formatEventType(eventType) {
342 if (!eventType || typeof eventType !== 'string') {
343 return 'Unknown Event';
344 }
345
346 return eventType
347 .split('.')
348 .map((part) => part.charAt(0).toUpperCase() + part.slice(1))
349 .join(' ');
350}
351
352export async function getLoggingStatus(client, guildId) {
353 const config = await getGuildConfig(client, guildId);

Callers 1

createLogEmbedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected