From dc6454104f70e5a83518e102b448418615b184c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=99=E3=81=9A=E3=81=AD=E3=83=BC=E3=81=86?= Date: Fri, 5 Nov 2021 18:32:49 +0900 Subject: [PATCH] docs(Guild): fix setOwner() example (#6929) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Antonio Román --- src/structures/Guild.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index d3147971d..0b566f95b 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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) {