16 lines
477 B
JavaScript
16 lines
477 B
JavaScript
class Participant{
|
|
constructor(discordID, userData, tlData){
|
|
this.discordID = discordID;
|
|
this.id = userData.data._id;
|
|
this.username = userData.data.username;
|
|
this.country = userData.data.country;
|
|
this.tr = tlData.data.tr;
|
|
this.oldSeasonTR = tlData.data.past["1"]?.tr??null;
|
|
this.rank = tlData.data.bestrank;
|
|
this.oldSeasonRank = tlData.data.past["1"]?.rank??null;
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
Participant
|
|
} |