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

Function getLogChannelForEvent

src/services/loggingService.js:188–196  ·  view source on GitHub ↗
(config, eventType, overrideChannelId = null)

Source from the content-addressed store, hash-verified

186}
187
188function getLogChannelForEvent(config, eventType, overrideChannelId = null) {
189 if (overrideChannelId) {
190 return overrideChannelId;
191 }
192
193 const category = eventType?.split('.')[0];
194 const destination = CATEGORY_DESTINATION[category] || 'audit';
195 return resolveLogChannel(config, destination);
196}
197
198export async function logEvent({
199 client,

Callers 1

logEventFunction · 0.85

Calls 1

resolveLogChannelFunction · 0.85

Tested by

no test coverage detected