mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Added channel toString
This commit is contained in:
@@ -64,7 +64,7 @@ var Channel = (function () {
|
||||
}, {
|
||||
key: "toString",
|
||||
value: function toString() {
|
||||
return "#" + this.name;
|
||||
return "<#" + this.id + ">";
|
||||
}
|
||||
}, {
|
||||
key: "client",
|
||||
|
||||
@@ -34,7 +34,7 @@ class Channel {
|
||||
}
|
||||
|
||||
toString(){
|
||||
return "#" + this.name;
|
||||
return "<#" + this.id + ">";
|
||||
}
|
||||
|
||||
get isPrivate(){
|
||||
|
||||
@@ -17,7 +17,7 @@ mybot.on("message", function (message) {
|
||||
}
|
||||
|
||||
// we can go ahead :)
|
||||
mybot.sendMessage(message.author, message.sender.username);
|
||||
mybot.reply(message, message.channel);
|
||||
});
|
||||
|
||||
mybot.on("ready", function () {
|
||||
|
||||
Reference in New Issue
Block a user