From b1772089d1fd927f76e4b1d05d841793a5a86639 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Fri, 26 Aug 2016 17:57:08 -0400 Subject: [PATCH] Made GuildChannel.toString return a mention (#543) --- src/structures/GuildChannel.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index aaa7e2660..b8c876f75 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -263,17 +263,17 @@ class GuildChannel extends Channel { } /** - * When concatenated with a String, this automatically returns the Channel's name instead of the Channel object. + * When concatenated with a String, this automatically returns the Channel's mention instead of the Channel object. * @returns {String} * @example - * // Outputs: Hello from general + * // Outputs: Hello from #general * console.log(`Hello from ${channel}`); * @example - * // Outputs: Hello from general - * console.log('Hello from ' + ${channel}); + * // Outputs: Hello from #general + * console.log('Hello from ' + channel); */ toString() { - return this.name; + return `<#${this.id}>`; } }