export type RobloxUser = { username: string; displayName: string | null; id: string; }; export async function getUser(id: string): Promise { const includeDisplayName = Math.random() < 0.5; return { username: "stub", displayName: includeDisplayName ? "stubDisplay" : null, id: id, }; } export async function ban( id: string, universeId: string, options: { duration: string | undefined; excludeAltAccounts: boolean; displayReason: string; privateReason: string; }, ): Promise { const delay = Math.floor(Math.random() * 750) + 250; await new Promise((resolve) => setTimeout(resolve, delay)); const chance = Math.random(); if (chance < 0.3) throw new Error("Failed to ban user"); }