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

Function updateJoinToCreateConfig

src/utils/database.js:1418–1429  ·  view source on GitHub ↗
(client, guildId, updates)

Source from the content-addressed store, hash-verified

1416}
1417
1418export async function updateJoinToCreateConfig(client, guildId, updates) {
1419 try {
1420 const currentConfig = await getJoinToCreateConfig(client, guildId);
1421 const updatedConfig = { ...currentConfig, ...updates };
1422
1423 await saveJoinToCreateConfig(client, guildId, updatedConfig);
1424 return updatedConfig;
1425 } catch (error) {
1426 logger.error(`Error updating Join to Create config for guild ${guildId}:`, error);
1427 throw error;
1428 }
1429}
1430
1431export async function addJoinToCreateTrigger(client, guildId, channelId, options = {}) {
1432 try {

Callers 3

handleNameTemplateChangeFunction · 0.90
handleUserLimitChangeFunction · 0.90
handleBitrateChangeFunction · 0.90

Calls 2

getJoinToCreateConfigFunction · 0.85
saveJoinToCreateConfigFunction · 0.85

Tested by

no test coverage detected