diff --git a/lib/channel.js b/lib/channel.js index dfb4f72d8..79bc71b55 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -64,7 +64,7 @@ var Channel = (function () { }, { key: "toString", value: function toString() { - return "#" + this.name; + return "<#" + this.id + ">"; } }, { key: "client", diff --git a/src/channel.js b/src/channel.js index 0dc0b957a..d813e9b74 100644 --- a/src/channel.js +++ b/src/channel.js @@ -34,7 +34,7 @@ class Channel { } toString(){ - return "#" + this.name; + return "<#" + this.id + ">"; } get isPrivate(){ diff --git a/test/bot.1.js b/test/bot.1.js index f99314baa..38f25d390 100644 --- a/test/bot.1.js +++ b/test/bot.1.js @@ -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 () {