(client, guildId, updates)
| 1416 | } |
| 1417 | |
| 1418 | export async function updateJoinToCreateConfig(client, guildId, updates) { |
| 1419 | try { |
| 1420 | const currentConfig = await getJoinToCreateConfig(client, guildId); |
| 1421 | const updatedConfig = { ...currentConfig, ...updates }; |
| 1422 | |
| 1423 | await saveJoinToCreateConfig(client, guildId, updatedConfig); |
| 1424 | return updatedConfig; |
| 1425 | } catch (error) { |
| 1426 | logger.error(`Error updating Join to Create config for guild ${guildId}:`, error); |
| 1427 | throw error; |
| 1428 | } |
| 1429 | } |
| 1430 | |
| 1431 | export async function addJoinToCreateTrigger(client, guildId, channelId, options = {}) { |
| 1432 | try { |
no test coverage detected