mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
Added isPrivate to channels
This commit is contained in:
parent
f78c1b8a2f
commit
aa1db24030
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||||
Loading…
Reference in a new issue