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

Function isTriggerChannel

src/services/joinToCreateService.js:411–419  ·  view source on GitHub ↗
(client, guildId, channelId)

Source from the content-addressed store, hash-verified

409}
410
411export 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
421export async function getChannelConfiguration(client, guildId, channelId) {
422 try {

Callers

nothing calls this directly

Calls 1

getConfigurationFunction · 0.85

Tested by

no test coverage detected