all repos — stealth-developers @ e24ca93b2bb2cef8fa9c346db7bb7f07bada0973

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