mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
added toString
This commit is contained in:
parent
05a3c7f165
commit
1176ca7022
4 changed files with 17 additions and 0 deletions
|
|
@ -61,6 +61,11 @@ var Channel = (function () {
|
|||
|
||||
return null;
|
||||
}
|
||||
}, {
|
||||
key: "toString",
|
||||
value: function toString() {
|
||||
return "#" + this.name;
|
||||
}
|
||||
}, {
|
||||
key: "client",
|
||||
get: function get() {
|
||||
|
|
|
|||
|
|
@ -137,6 +137,11 @@ var Server = (function () {
|
|||
}
|
||||
return member;
|
||||
}
|
||||
}, {
|
||||
key: "toString",
|
||||
value: function toString() {
|
||||
return this.name;
|
||||
}
|
||||
}, {
|
||||
key: "iconURL",
|
||||
get: function get() {
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ class Channel {
|
|||
return null;
|
||||
}
|
||||
|
||||
toString(){
|
||||
return "#" + this.name;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Channel;
|
||||
|
|
@ -84,6 +84,10 @@ class Server {
|
|||
}
|
||||
return member;
|
||||
}
|
||||
|
||||
toString(){
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Server;
|
||||
Loading…
Reference in a new issue