From dfd63bdb6b73c39bd071689561f42dce3827fc14 Mon Sep 17 00:00:00 2001 From: anandre <38661761+anandre@users.noreply.github.com> Date: Sat, 5 Sep 2020 13:18:00 -0500 Subject: [PATCH] docs(Guild): Guild.setName() example (#4797) The docs example was incorrect, as the parameter is called `updated` but was later referenced as `guild`. This PR fixes that by changing it to `updated` to match other examples, such as `setRegion()` --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index ce1f83b5f..a6f01ee8c 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -1106,7 +1106,7 @@ class Guild extends Base { * @example * // Edit the guild name * guild.setName('Discord Guild') - * .then(updated => console.log(`Updated guild name to ${guild}`)) + * .then(updated => console.log(`Updated guild name to ${updated.name}`)) * .catch(console.error); */ setName(name, reason) {