mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
docs(Guild): fix setOwner() example (#6929)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user