logs, logs-content: Added basic view of logs and added characters to logs
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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")}`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user