Chipmunk
5f3560910b
not sure if it's better or worse now. also, i have tried to optimize color codes, but this optimization seems unreliable (i might fix or remove it in the future)
17 lines
281 B
JavaScript
17 lines
281 B
JavaScript
const plainStringify = require('../chat/stringify/plain')
|
|
|
|
class TextMessage {
|
|
constructor (text) {
|
|
this.text = text
|
|
}
|
|
|
|
getString () {
|
|
return plainStringify(this.text, { lang: {} })
|
|
}
|
|
|
|
toString () {
|
|
return this.getString()
|
|
}
|
|
}
|
|
|
|
module.exports = TextMessage
|