(config, destination)
| 148 | }; |
| 149 | |
| 150 | export function resolveLogChannel(config, destination) { |
| 151 | const channels = config?.logging?.channels || {}; |
| 152 | if (destination && channels[destination]) { |
| 153 | return channels[destination]; |
| 154 | } |
| 155 | if (destination === 'audit') { |
| 156 | return channels.audit ?? config?.logging?.channelId ?? config?.logChannelId ?? null; |
| 157 | } |
| 158 | return channels[destination] ?? null; |
| 159 | } |
| 160 | |
| 161 | export function getIgnoreList(config) { |
| 162 | return config?.logging?.ignore ?? config?.logIgnore ?? { users: [], channels: [] }; |
no outgoing calls
no test coverage detected