mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +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;
|
return null;
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: "toString",
|
||||||
|
value: function toString() {
|
||||||
|
return "#" + this.name;
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "client",
|
key: "client",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,11 @@ var Server = (function () {
|
||||||
}
|
}
|
||||||
return member;
|
return member;
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: "toString",
|
||||||
|
value: function toString() {
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "iconURL",
|
key: "iconURL",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,9 @@ class Channel {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toString(){
|
||||||
|
return "#" + this.name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Channel;
|
module.exports = Channel;
|
||||||
|
|
@ -84,6 +84,10 @@ class Server {
|
||||||
}
|
}
|
||||||
return member;
|
return member;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toString(){
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Server;
|
module.exports = Server;
|
||||||
Loading…
Reference in a new issue