Variable TetraChannelConst
TetraChannel: {
cache: Map<string, any>;
general: {
activity: (() => Promise<GeneralActivityType>);
stats: (() => Promise<GeneralStatsType>);
};
leaderboards: {
league: ((after?, before?, limit?, country?) => Promise<LeagueLeaderboardUserInfoType[]>);
leagueFull: ((country?) => Promise<LeagueLeaderboardUserInfoType[]>);
};
misc: {
allNews: ((limit?) => Promise<LatestNewsType[]>);
news: ((stream, limit?) => Promise<LatestNewsType[]>);
stream: ((stream) => Promise<RecordType[]>);
};
users: {
info: ((user) => Promise<UserInfoType>);
records: ((user) => Promise<UserRecordsType>);
search: ((query) => Promise<UserSearchType | undefined>);
};
} = ...
Type declaration
cache: Map<string, any>
general: {
activity: (() => Promise<GeneralActivityType>);
stats: (() => Promise<GeneralStatsType>);
}
activity: (() => Promise<GeneralActivityType>)
- (): Promise<GeneralActivityType>
Returns Promise<GeneralActivityType>
stats: (() => Promise<GeneralStatsType>)
- (): Promise<GeneralStatsType>
Returns Promise<GeneralStatsType>
leaderboards: {
league: ((after?, before?, limit?, country?) => Promise<LeagueLeaderboardUserInfoType[]>);
leagueFull: ((country?) => Promise<LeagueLeaderboardUserInfoType[]>);
}
league: ((after?, before?, limit?, country?) => Promise<LeagueLeaderboardUserInfoType[]>)
- (after?, before?, limit?, country?): Promise<LeagueLeaderboardUserInfoType[]>
Parameters
Optional
after: number
Optional
before: number
Optional
limit: number
Optional
country: string
Returns Promise<LeagueLeaderboardUserInfoType[]>
leagueFull: ((country?) => Promise<LeagueLeaderboardUserInfoType[]>)
- (country?): Promise<LeagueLeaderboardUserInfoType[]>
Returns Promise<LeagueLeaderboardUserInfoType[]>
misc: {
allNews: ((limit?) => Promise<LatestNewsType[]>);
news: ((stream, limit?) => Promise<LatestNewsType[]>);
stream: ((stream) => Promise<RecordType[]>);
}
allNews: ((limit?) => Promise<LatestNewsType[]>)
- (limit?): Promise<LatestNewsType[]>
Returns Promise<LatestNewsType[]>
news: ((stream, limit?) => Promise<LatestNewsType[]>)
- (stream, limit?): Promise<LatestNewsType[]>
Parameters
stream: "40l_global" | `40l_global_${string}` | "40l_userbest" | `40l_userbest_${string}` | "40l_userrecent" | `40l_userrecent_${string}` | "blitz_global" | `blitz_global_${string}` | "blitz_userbest" | `blitz_userbest_${string}` | "blitz_userrecent" | `blitz_userrecent_${string}` | "any_global" | `any_global_${string}` | "any_userbest" | `any_userbest_${string}` | "any_userrecent" | `any_userrecent_${string}`
Optional
limit: number
Returns Promise<LatestNewsType[]>
stream: ((stream) => Promise<RecordType[]>)
- (stream): Promise<RecordType[]>
Parameters
stream: "40l_global" | `40l_global_${string}` | "40l_userbest" | `40l_userbest_${string}` | "40l_userrecent" | `40l_userrecent_${string}` | "blitz_global" | `blitz_global_${string}` | "blitz_userbest" | `blitz_userbest_${string}` | "blitz_userrecent" | `blitz_userrecent_${string}` | "any_global" | `any_global_${string}` | "any_userbest" | `any_userbest_${string}` | "any_userrecent" | `any_userrecent_${string}`
Returns Promise<RecordType[]>
users: {
info: ((user) => Promise<UserInfoType>);
records: ((user) => Promise<UserRecordsType>);
search: ((query) => Promise<UserSearchType | undefined>);
}
info: ((user) => Promise<UserInfoType>)
- (user): Promise<UserInfoType>
Returns Promise<UserInfoType>
records: ((user) => Promise<UserRecordsType>)
- (user): Promise<UserRecordsType>
Returns Promise<UserRecordsType>
search: ((query) => Promise<UserSearchType | undefined>)
- (query): Promise<UserSearchType | undefined>
Returns Promise<UserSearchType | undefined>
Description
A graph of user activity over the last 2 days. A user is seen as active if they logged in or received XP within the last 30 minutes.