mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
docs: fix guildChannel#toString() example (#2203)
* fix the docs * don't log something what you don't log
This commit is contained in:
parent
659e89e8cd
commit
e883afa0ee
1 changed files with 2 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue