class
chat_room
{
constructor
(
id
,
name
){
this
.
id
=
id
;
this
.
name
=
name
;
}
print(...text){
console.log(...text);
}
help(){
this.print(' [native code] ');
}
}
class chat_user{
static constructor(systemVariable){
this.id = systemVariable.id;
this.name = systemVariable.name;
this.twitch = new twitch(systemVariable)/* Uncaught ReferenceError: twitch is not defined at <anonymous>:1:1 */;
}
}
function user(...user){
if(user == 'me'){
user = [twitch.getUser('id')]/* Uncaught ReferenceError: twitch is not defined at <anonymous>:1:1 */;
}
let u = new chat_user(...user);
return(u);
}
const chat = new chat_room();