all repos — stealth-developers @ 0ee3bfbfad5c5c6434e730c64a504375334db464

apps/bot/src/events/index.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
import { upsertGuildActor } from "f/guild-actor";

import { client } from "@/client";

client.on("clientReady", async () => {
	const guilds = client.guilds.fetch();
	if (!guilds) return;

	for (const guild of (await guilds).values()) await upsertGuildActor(guild);
});