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

Function saveWelcomeConfig

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

Source from the content-addressed store, hash-verified

695}
696
697export async function saveWelcomeConfig(client, guildId, config) {
698 const key = getWelcomeConfigKey(guildId);
699 try {
700 const existingConfig = await getWelcomeConfig(client, guildId);
701 const mergedConfig = { ...existingConfig, ...config };
702
703 await client.db.set(key, mergedConfig);
704 return true;
705 } catch (error) {
706 logger.error(`Error saving welcome config for guild ${guildId}:`, error);
707 return false;
708 }
709}
710
711export async function updateWelcomeConfig(client, guildId, updates) {
712 try {

Callers 10

executeFunction · 0.90
handleWelcomeChannelFunction · 0.90
handleWelcomeMessageFunction · 0.90
handleWelcomeImageFunction · 0.90
handleWelcomePingFunction · 0.90
handleGoodbyeChannelFunction · 0.90
handleGoodbyeMessageFunction · 0.90
handleGoodbyeImageFunction · 0.90
handleGoodbyePingFunction · 0.90
updateWelcomeConfigFunction · 0.85

Calls 3

getWelcomeConfigKeyFunction · 0.85
getWelcomeConfigFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected