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

Function updateWelcomeConfig

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

Source from the content-addressed store, hash-verified

709}
710
711export async function updateWelcomeConfig(client, guildId, updates) {
712 try {
713 const currentConfig = await getWelcomeConfig(client, guildId);
714 const updatedConfig = { ...currentConfig, ...updates };
715
716 await saveWelcomeConfig(client, guildId, updatedConfig);
717 return updatedConfig;
718 } catch (error) {
719 logger.error(`Error updating welcome config for guild ${guildId}:`, error);
720 throw error;
721 }
722}
723
724export function getLevelingKey(guildId) {
725 return `guild:${guildId}:leveling:config`;

Callers 3

executeFunction · 0.90
executeFunction · 0.90
executeFunction · 0.90

Calls 2

getWelcomeConfigFunction · 0.85
saveWelcomeConfigFunction · 0.85

Tested by

no test coverage detected