Added isPrivate field

This commit is contained in:
hydrabolt
2015-09-01 22:12:23 +01:00
parent 705a77ed57
commit f78c1b8a2f

View File

@@ -1,3 +1,5 @@
var PMChannel = require("./PMChannel.js");
class Message{
constructor(data, channel, mentions, author){
this.tts = data.tts;
@@ -27,6 +29,10 @@ class Message{
get sender(){
return this.author;
}
get isPrivate(){
return this.channel.isPrivate;
}
}
/*exports.Message.prototype.isPM = function() {