mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
added toString
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user