docs: fix guildChannel#toString() example (#2203)

* fix the docs

* don't log something what you don't log
This commit is contained in:
Michel Nguyen
2018-01-04 01:17:40 +01:00
committed by Crawl
parent 659e89e8cd
commit e883afa0ee

View File

@@ -404,10 +404,10 @@ class GuildChannel extends Channel {
* When concatenated with a string, this automatically returns the channel's mention instead of the Channel object.
* @returns {string}
* @example
* // Outputs: Hello from #general
* // Logs: Hello from <#123456789012345678>
* console.log(`Hello from ${channel}`);
* @example
* // Outputs: Hello from #general
* // Logs: Hello from <#123456789012345678>
* console.log('Hello from ' + channel);
*/
toString() {