all repos — stealth-developers @ 8ffaace39d0417d7ac8f526ef960789cba8e4c67

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);
});