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