(client, guildId, channelId)
| 409 | } |
| 410 | |
| 411 | export async function isTriggerChannel(client, guildId, channelId) { |
| 412 | try { |
| 413 | const config = await getConfiguration(client, guildId); |
| 414 | return config.triggerChannels.includes(channelId); |
| 415 | } catch (error) { |
| 416 | logger.error(`Error checking if channel is trigger: ${error.message}`); |
| 417 | return false; |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | export async function getChannelConfiguration(client, guildId, channelId) { |
| 422 | try { |
nothing calls this directly
no test coverage detected