Discord commands

/admin export-availability

Export current League Roster availability as JSON for external tools.

Who can use it: League Organizers.

Run /admin export-availability to download the current availability data. The former top-level /export-availabilities command now lives here; this documentation URL is kept for existing links.

Reading the export

Use it to audit Roster availability or feed scheduling tools. Slot positions must be interpreted using the League’s region-specific slot configuration. Do not assume every League uses the same number of slots or timezone.

The export has a League header, export timestamp, and all non-archived League Rosters. This illustrative TypeScript shape describes the envelope; use the downloaded values for the League’s actual availability and location configuration:

type AvailabilityExport = {
  league: { id: string; name: string };
  exportedAt: string;
  teams: Array<{
    name: string;
    region: string;
    vacation: boolean;
    availability: Record<string, number[]>;
    locationPreference: Record<string, string | null>;
  }>;
};

The downloaded export is the source of truth for the current payload. This command exports data; it does not import changes or publish a schedule.

Next: Schedule matches.