docs(Guild): fix setOwner() example (#6929)

Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
すずねーう
2021-11-05 18:32:49 +09:00
committed by GitHub
parent 28688e27d5
commit dc6454104f

View File

@@ -1070,7 +1070,8 @@ class Guild extends AnonymousGuild {
* @example
* // Edit the guild owner
* guild.setOwner(guild.members.cache.first())
* .then(updated => console.log(`Updated the guild owner to ${updated.owner.displayName}`))
* .then(guild => guild.fetchOwner())
* .then(owner => console.log(`Updated the guild owner to ${owner.displayName}`))
* .catch(console.error);
*/
setOwner(owner, reason) {