mirror of
https://github.com/danbulant/discord.js
synced 2026-07-04 18:50:40 +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.
|
* When concatenated with a string, this automatically returns the channel's mention instead of the Channel object.
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
* @example
|
* @example
|
||||||
* // Outputs: Hello from #general
|
* // Logs: Hello from <#123456789012345678>
|
||||||
* console.log(`Hello from ${channel}`);
|
* console.log(`Hello from ${channel}`);
|
||||||
* @example
|
* @example
|
||||||
* // Outputs: Hello from #general
|
* // Logs: Hello from <#123456789012345678>
|
||||||
* console.log('Hello from ' + channel);
|
* console.log('Hello from ' + channel);
|
||||||
*/
|
*/
|
||||||
toString() {
|
toString() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue