(client, guildId)
| 247 | } |
| 248 | |
| 249 | export 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 | |
| 258 | export function validateLogChannel(channel, botMember) { |
| 259 | if (!channel || channel.type !== ChannelType.GuildText) { |
nothing calls this directly
no test coverage detected