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

Function getLogChannelForEventType

src/utils/ticketLogging.js:79–98  ·  view source on GitHub ↗
(config, eventType)

Source from the content-addressed store, hash-verified

77}
78
79function getLogChannelForEventType(config, eventType) {
80 switch (eventType) {
81 case 'transcript':
82 return config.ticketTranscriptChannelId || null;
83
84 case 'open':
85 case 'close':
86 case 'delete':
87 case 'claim':
88 case 'unclaim':
89 case 'priority':
90 case 'pin':
91 case 'unpin':
92 case 'feedback':
93 return config.ticketLogsChannelId || null;
94
95 default:
96 return null;
97 }
98}
99
100const TICKET_EVENT_STYLES = {
101 open: { color: 0x5865F2, title: 'Ticket Created' },

Callers 1

logTicketEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected