added toString

This commit is contained in:
hydrabolt
2015-08-26 16:48:29 +01:00
parent 05a3c7f165
commit 1176ca7022
4 changed files with 17 additions and 0 deletions

View File

@@ -61,6 +61,11 @@ var Channel = (function () {
return null;
}
}, {
key: "toString",
value: function toString() {
return "#" + this.name;
}
}, {
key: "client",
get: function get() {

View File

@@ -137,6 +137,11 @@ var Server = (function () {
}
return member;
}
}, {
key: "toString",
value: function toString() {
return this.name;
}
}, {
key: "iconURL",
get: function get() {

View File

@@ -33,6 +33,9 @@ class Channel {
return null;
}
toString(){
return "#" + this.name;
}
}
module.exports = Channel;

View File

@@ -84,6 +84,10 @@ class Server {
}
return member;
}
toString(){
return this.name;
}
}
module.exports = Server;