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

Function unwrapReplitData

src/utils/database.js:232–242  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

230}
231
232export function unwrapReplitData(data) {
233 if (
234 typeof data === "object" &&
235 data !== null &&
236 data.ok !== undefined &&
237 data.value !== undefined
238 ) {
239 return unwrapReplitData(data.value);
240 }
241 return data;
242}
243
244export const getGuildConfigKey = (guildId) => `guild:${guildId}:config`;
245export const getGuildBirthdaysKey = (guildId) => `guild:${guildId}:birthdays`;

Callers 15

getGuildGiveawaysFunction · 0.90
getGuildConfigFunction · 0.85
getGuildBirthdaysFunction · 0.85
getEndedGiveawaysFromKvFunction · 0.85
getWelcomeConfigFunction · 0.85
getLeaderboardFunction · 0.85
getApplicationRolesFunction · 0.85
getApplicationSettingsFunction · 0.85
deleteApplicationFunction · 0.85
createApplicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected