Skip to content

Commit

Permalink
serverchannel.toString() now returns mentionable
Browse files Browse the repository at this point in the history
  • Loading branch information
amishshah committed Nov 19, 2015
1 parent 6c08c37 commit 0fdcf82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Structures/ServerChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ var ServerChannel = (function (_Channel) {
};

ServerChannel.prototype.toString = function toString() {
return this.name;
return "<#" + this.id + ">";
};

ServerChannel.prototype.setName = function setName() {
Expand Down
2 changes: 1 addition & 1 deletion src/Structures/ServerChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ServerChannel extends Channel{
}

toString(){
return this.name;
return `<#${this.id}>`;
}

setName(){
Expand Down

0 comments on commit 0fdcf82

Please sign in to comment.