mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Added isPrivate field
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user