mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Added isPrivate field
This commit is contained in:
parent
705a77ed57
commit
f78c1b8a2f
1 changed files with 6 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue