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

Function logConfigurationChange

src/services/joinToCreateService.js:462–480  ·  view source on GitHub ↗
(client, guildId, userId, action, details)

Source from the content-addressed store, hash-verified

460}
461
462export async function logConfigurationChange(client, guildId, userId, action, details) {
463 try {
464 await logEvent({
465 client,
466 guildId,
467 eventType: EVENT_TYPES.COUNTER_CONFIG,
468 data: {
469 title: 'Join to Create Updated',
470 lines: [
471 formatLogLine('Action', action),
472 formatLogLine('Details', typeof details === 'string' ? details : JSON.stringify(details)),
473 ],
474 userId,
475 },
476 });
477 } catch (error) {
478 logger.warn(`Failed to log Join to Create configuration change: ${error.message}`);
479 }
480}
481
482export async function createTemporaryChannel(guild, member, options = {}) {
483 try {

Callers 5

handleSetupSubcommandFunction · 0.90
handleNameTemplateModalFunction · 0.90
handleUserLimitModalFunction · 0.90
handleBitrateModalFunction · 0.90
handleChannelDeletionFunction · 0.90

Calls 2

logEventFunction · 0.90
formatLogLineFunction · 0.90

Tested by

no test coverage detected