MCPcopy
hub / github.com/codebymitch/TitanBot / getTicketLoggingConfig

Function getTicketLoggingConfig

src/utils/ticketLogging.js:249–256  ·  view source on GitHub ↗
(client, guildId)

Source from the content-addressed store, hash-verified

247}
248
249export async function getTicketLoggingConfig(client, guildId) {
250 const config = await getGuildConfig(client, guildId);
251 return {
252 enabled: !!(config.ticketLogsChannelId || config.ticketTranscriptChannelId),
253 lifecycleChannelId: config.ticketLogsChannelId || null,
254 transcriptChannelId: config.ticketTranscriptChannelId || null,
255 };
256}
257
258export function validateLogChannel(channel, botMember) {
259 if (!channel || channel.type !== ChannelType.GuildText) {

Callers

nothing calls this directly

Calls 1

getGuildConfigFunction · 0.90

Tested by

no test coverage detected