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