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

Function saveJoinToCreateConfig

src/utils/database.js:1404–1416  ·  view source on GitHub ↗
(client, guildId, config)

Source from the content-addressed store, hash-verified

1402}
1403
1404export async function saveJoinToCreateConfig(client, guildId, config) {
1405 const key = getJoinToCreateConfigKey(guildId);
1406 try {
1407 const existingConfig = await getJoinToCreateConfig(client, guildId);
1408 const mergedConfig = { ...existingConfig, ...config };
1409
1410 await client.db.set(key, mergedConfig);
1411 return true;
1412 } catch (error) {
1413 logger.error(`Error saving Join to Create config for guild ${guildId}:`, error);
1414 return false;
1415 }
1416}
1417
1418export async function updateJoinToCreateConfig(client, guildId, updates) {
1419 try {

Callers 8

initializeJoinToCreateFunction · 0.90
updateChannelConfigFunction · 0.90
removeTriggerChannelFunction · 0.90
updateJoinToCreateConfigFunction · 0.85
addJoinToCreateTriggerFunction · 0.85
registerTemporaryChannelFunction · 0.85

Calls 3

getJoinToCreateConfigKeyFunction · 0.85
getJoinToCreateConfigFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected