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

Function getLoggingStatus

src/services/loggingService.js:352–364  ·  view source on GitHub ↗
(client, guildId)

Source from the content-addressed store, hash-verified

350}
351
352export async function getLoggingStatus(client, guildId) {
353 const config = await getGuildConfig(client, guildId);
354 const logging = config.logging || {};
355
356 return {
357 enabled: logging.enabled || false,
358 channels: logging.channels || { audit: null, applications: null, reports: null },
359 channelId: logging.channels?.audit ?? null,
360 ignore: getIgnoreList(config),
361 enabledEvents: logging.enabledEvents || {},
362 allEventTypes: EVENT_TYPES,
363 };
364}
365
366export async function toggleEventLogging(client, guildId, eventTypes, enabled) {
367 try {

Callers 4

buildLoggingFilterViewFunction · 0.90
handleToggleFunction · 0.90

Calls 2

getGuildConfigFunction · 0.90
getIgnoreListFunction · 0.85

Tested by

no test coverage detected