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

Function saveApplicationRoleSettings

src/utils/database.js:1164–1178  ·  view source on GitHub ↗
(client, guildId, roleId, settings)

Source from the content-addressed store, hash-verified

1162}
1163
1164export async function saveApplicationRoleSettings(client, guildId, roleId, settings) {
1165 try {
1166 if (!client.db || typeof client.db.set !== "function") {
1167 logger.error("Database client is not available for saveApplicationRoleSettings.");
1168 return false;
1169 }
1170
1171 const key = getApplicationRoleSettingsKey(guildId, roleId);
1172 await client.db.set(key, settings);
1173 return true;
1174 } catch (error) {
1175 logger.error(`Error saving application role settings for ${guildId}:${roleId}:`, error);
1176 return false;
1177 }
1178}
1179
1180export async function deleteApplicationRoleSettings(client, guildId, roleId) {
1181 try {

Callers 3

handleSetupFunction · 0.90
handleLogChannelFunction · 0.90
handleQuestionsFunction · 0.90

Calls 2

setMethod · 0.45

Tested by

no test coverage detected