58 lines
1.2 KiB
TypeScript
58 lines
1.2 KiB
TypeScript
export interface CheckGuild {
|
|
/**
|
|
* What is the Guild ID of the server?
|
|
*/
|
|
id: string
|
|
/**
|
|
* What is this server's name?
|
|
*/
|
|
name: string,
|
|
/**
|
|
* What type of server is this?
|
|
*/
|
|
type: string,
|
|
/**
|
|
* What versions was this user detected with?
|
|
*/
|
|
detectedWith: Array<number>
|
|
/**
|
|
* When was the user last seen inside the condo server?
|
|
*/
|
|
lastSeen: Date | undefined,
|
|
/**
|
|
* When was the user first seen inside the condo server?
|
|
*/
|
|
firstSeen: Date | undefined,
|
|
/**
|
|
* Has the user boosted this server before?
|
|
*/
|
|
isBooster: boolean,
|
|
/**
|
|
* Does the user have certain roles?
|
|
*/
|
|
isStaff: boolean
|
|
/**
|
|
* A number calculated on how much a user has interacted with this guild.
|
|
*/
|
|
score: number
|
|
}
|
|
|
|
export interface CheckResult {
|
|
/**
|
|
* What is the ID of the user?
|
|
*/
|
|
userId: string,
|
|
/**
|
|
* The summed up score of all the `guilds`.
|
|
*/
|
|
scoreSum: number,
|
|
/**
|
|
* When was the user last seen?
|
|
*/
|
|
lastSeen: Date | undefined,
|
|
/**
|
|
* An array of guilds the user has been detected in, with certain properties.
|
|
*/
|
|
guilds: Array<CheckGuild>
|
|
}
|