mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
docs: fix guildChannel#toString() example (#2203)
* fix the docs * don't log something what you don't log
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user