mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
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:
parent
5b39737d49
commit
dfd63bdb6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue