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

Function deleteApplicationRoleSettings

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

Source from the content-addressed store, hash-verified

1178}
1179
1180export async function deleteApplicationRoleSettings(client, guildId, roleId) {
1181 try {
1182 if (!client.db || typeof client.db.delete !== "function") {
1183 logger.error("Database client is not available for deleteApplicationRoleSettings.");
1184 return false;
1185 }
1186
1187 const key = getApplicationRoleSettingsKey(guildId, roleId);
1188 await client.db.delete(key);
1189 return true;
1190 } catch (error) {
1191 logger.error(`Error deleting application role settings for ${guildId}:${roleId}:`, error);
1192 return false;
1193 }
1194}
1195
1196export async function createApplication(client, application) {
1197 const { guildId, userId } = application;

Callers 1

handleDeleteApplicationFunction · 0.90

Calls 2

deleteMethod · 0.45

Tested by

no test coverage detected