(client, guildId, config)
| 1402 | } |
| 1403 | |
| 1404 | export async function saveJoinToCreateConfig(client, guildId, config) { |
| 1405 | const key = getJoinToCreateConfigKey(guildId); |
| 1406 | try { |
| 1407 | const existingConfig = await getJoinToCreateConfig(client, guildId); |
| 1408 | const mergedConfig = { ...existingConfig, ...config }; |
| 1409 | |
| 1410 | await client.db.set(key, mergedConfig); |
| 1411 | return true; |
| 1412 | } catch (error) { |
| 1413 | logger.error(`Error saving Join to Create config for guild ${guildId}:`, error); |
| 1414 | return false; |
| 1415 | } |
| 1416 | } |
| 1417 | |
| 1418 | export async function updateJoinToCreateConfig(client, guildId, updates) { |
| 1419 | try { |
no test coverage detected