(client, guildId, userId, action, details)
| 460 | } |
| 461 | |
| 462 | export async function logConfigurationChange(client, guildId, userId, action, details) { |
| 463 | try { |
| 464 | await logEvent({ |
| 465 | client, |
| 466 | guildId, |
| 467 | eventType: EVENT_TYPES.COUNTER_CONFIG, |
| 468 | data: { |
| 469 | title: 'Join to Create Updated', |
| 470 | lines: [ |
| 471 | formatLogLine('Action', action), |
| 472 | formatLogLine('Details', typeof details === 'string' ? details : JSON.stringify(details)), |
| 473 | ], |
| 474 | userId, |
| 475 | }, |
| 476 | }); |
| 477 | } catch (error) { |
| 478 | logger.warn(`Failed to log Join to Create configuration change: ${error.message}`); |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | export async function createTemporaryChannel(guild, member, options = {}) { |
| 483 | try { |
no test coverage detected