diff --git a/src/message.js b/src/message.js index a979e87dd..3462ce88c 100644 --- a/src/message.js +++ b/src/message.js @@ -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() {