ServerResult
ServerResult = {
found:false; } | {events:object[];found:true;missingPermissions:string|null;periodStart:string;profile:ServerProfile;uniqueUsersThisPeriod:number|null; }
Defined in: packages/client/src/results.ts:235
Answer to a server query. found is false for a server the collector has never seen.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ found: false; }
Type Literal
Section titled “Type Literal”{ events: object[]; found: true; missingPermissions: string | null; periodStart: string; profile: ServerProfile; uniqueUsersThisPeriod: number | null; }
events
Section titled “events”events:
object[]
The last 100 times the bot joined or left, or the server went down or came back. Newest first.
found:
true
missingPermissions
Section titled “missingPermissions”missingPermissions:
string|null
The permission bits Settings lists as required that the bot lacks here, as a decimal string ('0' for none).
null when no permissions are required or the bot’s are unknown.
periodStart
Section titled “periodStart”periodStart:
string
First day of the current salt period.
profile
Section titled “profile”profile:
ServerProfile
uniqueUsersThisPeriod
Section titled “uniqueUsersThisPeriod”uniqueUsersThisPeriod:
number|null