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