all repos — stealth-developers @ 6c1094cd3d39e42163fcd5e1ca3a8522231057ed

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
import "f/automod/listeners";
import "f/proxy/listeners";
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);
});