mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 16:22:08 +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{
|
class Message{
|
||||||
constructor(data, channel, mentions, author){
|
constructor(data, channel, mentions, author){
|
||||||
this.tts = data.tts;
|
this.tts = data.tts;
|
||||||
|
|
@ -27,6 +29,10 @@ class Message{
|
||||||
get sender(){
|
get sender(){
|
||||||
return this.author;
|
return this.author;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isPrivate(){
|
||||||
|
return this.channel.isPrivate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*exports.Message.prototype.isPM = function() {
|
/*exports.Message.prototype.isPM = function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue