mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +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
|
* @example
|
||||||
* // Edit the guild owner
|
* // Edit the guild owner
|
||||||
* guild.setOwner(guild.members.cache.first())
|
* 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);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
setOwner(owner, reason) {
|
setOwner(owner, reason) {
|
||||||
|
|||||||
Reference in New Issue
Block a user