all repos — stealth-developers @ b6e0941babbabd8366ca160ca09bb330a1698eb9

src/roblox/types/user-restriction.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
import type { Duration, ISO8601, Moderator, Paginated, UserRef } from "./";

export interface UserRestriction {
	path: string;
	user: UserRef;
	gameJoinRestriction: GameJoinRestriction;
}

export interface GameJoinRestriction {
	active: boolean;
	startTime: ISO8601;
	duration?: Duration;
	privateReason: string;
	displayReason: string;
	excludeAltAccounts: boolean;
	inherited: boolean;
}

export interface UserRestrictionLog {
	user: UserRef;
	place?: string;
	moderator: Moderator;
	createTime: ISO8601;
	startTime: ISO8601;
	active: boolean;
	duration?: Duration;
	privateReason: string;
	displayReason: string;
	excludeAltAccounts: boolean;
}

export type UserRestrictionLogsResponse = Paginated<UserRestrictionLog>;