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

Function saveLevelingConfig

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

Source from the content-addressed store, hash-verified

762}
763
764export async function saveLevelingConfig(client, guildId, config) {
765 const key = getLevelingKey(guildId);
766 try {
767 await setInDb(key, config);
768 return true;
769 } catch (error) {
770 logger.error(`Error saving leveling config for guild ${guildId}:`, error);
771 return false;
772 }
773}
774
775export async function getUserLevelData(client, guildId, userId) {
776 const key = getUserLevelKey(guildId, userId);

Callers 10

executeFunction · 0.90
executeFunction · 0.90
handleRoleRewardAddFunction · 0.90
handleRoleRewardRemoveFunction · 0.90
handleChannelFunction · 0.90
handleIgnoreChannelsFunction · 0.90
handleIgnoreRolesFunction · 0.90
handleMessageFunction · 0.90
handleXpRangeFunction · 0.90
handleXpCooldownFunction · 0.90

Calls 2

getLevelingKeyFunction · 0.85
setInDbFunction · 0.85

Tested by

no test coverage detected