steamapi
Version:
A nice Steam API wrapper.
39 lines (28 loc) • 899 B
text/typescript
import User from './User.js';
export default class UserBans extends User {
/** Is this user community banned */
communityBanned: boolean;
/** Is this user vac banned */
vacBanned: boolean;
/** Number of VAC bans the user has had */
vacBans: number;
/** Number of game bans the user has had */
gameBans: number;
/**
* Economy ban status of the user. 'none' means no economy ban.
* 'probation' means user is on probation.
* Not sure what other string values exist
*/
economyBan: string;
/** The number of days it has been since the user's last ban */
daysSinceLastBan: number;
constructor(data: any) {
super(data);
this.communityBanned = data.CommunityBanned;
this.vacBanned = data.VACBanned;
this.vacBans = data.NumberOfVACBans;
this.gameBans = data.NumberOfGameBans;
this.economyBan = data.EconomyBan;
this.daysSinceLastBan = data.DaysSinceLastBan;
}
}