Constructors
constructor
- new Leaderboard(client, data): Leaderboard
Parameters
data: {
success: boolean;
tts_leaderboard: {
creator_user_token: string;
default_avatar_color_index: number;
default_avatar_index: number;
display_name: string;
gravatar_hash: string;
uploaded_count: number;
username: string;
}[];
w2l_leaderboard: {
creator_user_token: string;
default_avatar_color_index: number;
default_avatar_index: number;
display_name: string;
gravatar_hash: string;
uploaded_count: number;
username: string;
}[];
}
success: boolean
tts_leaderboard: {
creator_user_token: string;
default_avatar_color_index: number;
default_avatar_index: number;
display_name: string;
gravatar_hash: string;
uploaded_count: number;
username: string;
}[]
w2l_leaderboard: {
creator_user_token: string;
default_avatar_color_index: number;
default_avatar_index: number;
display_name: string;
gravatar_hash: string;
uploaded_count: number;
username: string;
}[]
Properties
Readonly
webUrl
webUrl: string
Methods
getEntry
- getEntry(index, type): undefined | LeaderboardUser
Parameters
index: number
type: "tts" | "w2l"
the single entry.
The leaderboard class for the TTS and W2L leaderboards.