all repos — stealth-developers @ 553bd532d77c550a7da393646e17464f413c2986

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

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

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

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