akf-forum/classes/message.js

15 lines
257 B
JavaScript
Raw Normal View History

2022-02-26 21:26:27 +03:00
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;
}
}