akf-forum/classes/message.js
2022-02-26 21:26:27 +03:00

15 lines
No EOL
257 B
JavaScript

const User = require("./user")
module.exports = class Message {
constructor(content, author = new User(), time = new Date().getTime()) {
this.content = content;
this.author = author;
this.time = time;
}
}