const moment = require("moment") module.exports = class { onCreate(input) { this.state = { log: input.log } } get title() { if (this.state.log.title) { return this.state.log.title } return `${this.state.log.channel.name} – ${moment(this.state.log.date).format("MMMM D, YYYY")}` } }