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()`
This commit is contained in:
anandre
2020-09-05 13:18:00 -05:00
committed by GitHub
parent 5b39737d49
commit dfd63bdb6b

View File

@@ -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) {