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

Function getGuildBirthdays

src/utils/database.js:318–332  ·  view source on GitHub ↗
(client, guildId)

Source from the content-addressed store, hash-verified

316};
317
318export async function getGuildBirthdays(client, guildId) {
319 const key = getGuildBirthdaysKey(guildId);
320 try {
321 if (!client.db || typeof client.db.get !== "function") {
322 logger.error("Database client is not available for getGuildBirthdays.");
323 return {};
324 }
325
326 const rawData = await client.db.get(key, {});
327 return unwrapReplitData(rawData) || {};
328 } catch (error) {
329 logger.error(`Error retrieving birthdays for guild ${guildId}:`, error);
330 return {};
331 }
332}
333
334export async function setBirthday(client, guildId, userId, month, day) {
335 try {

Callers 7

getUserBirthdayFunction · 0.90
getAllBirthdaysFunction · 0.90
getUpcomingBirthdaysFunction · 0.90
getTodaysBirthdaysFunction · 0.90
executeFunction · 0.90
setBirthdayFunction · 0.85
deleteBirthdayFunction · 0.85

Calls 3

getGuildBirthdaysKeyFunction · 0.85
unwrapReplitDataFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected