mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01: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:
@@ -1106,7 +1106,7 @@ class Guild extends Base {
|
|||||||
* @example
|
* @example
|
||||||
* // Edit the guild name
|
* // Edit the guild name
|
||||||
* guild.setName('Discord Guild')
|
* 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);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
setName(name, reason) {
|
setName(name, reason) {
|
||||||
|
|||||||
Reference in New Issue
Block a user