mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 12:35:53 +00:00
Added channel toString
This commit is contained in:
parent
c904bdb3c3
commit
106addbb1a
3 changed files with 3 additions and 3 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue