mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Added isPrivate to channels
This commit is contained in:
@@ -20,6 +20,10 @@ class PMChannel {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
get isPrivate(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PMChannel;
|
||||
@@ -36,6 +36,10 @@ class Channel {
|
||||
toString(){
|
||||
return "#" + this.name;
|
||||
}
|
||||
|
||||
get isPrivate(){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Channel;
|
||||
Reference in New Issue
Block a user