(client)
| 8 | once: true, |
| 9 | |
| 10 | async execute(client) { |
| 11 | try { |
| 12 | client.user.setPresence(config.bot.presence); |
| 13 | |
| 14 | startupLog(`Ready! Logged in as ${client.user.tag}`); |
| 15 | startupLog(`Serving ${client.guilds.cache.size} guild(s)`); |
| 16 | startupLog(`Loaded ${client.commands.size} commands`); |
| 17 | |
| 18 | const reconciliationSummary = await reconcileReactionRoleMessages(client); |
| 19 | startupLog( |
| 20 | `Reaction role reconciliation: scanned ${reconciliationSummary.scannedMessages}, removed ${reconciliationSummary.removedMessages}, errors ${reconciliationSummary.errors}` |
| 21 | ); |
| 22 | } catch (error) { |
| 23 | logger.error("Error in ready event:", error); |
| 24 | } |
| 25 | }, |
| 26 | }; |
nothing calls this directly
no test coverage detected