mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
fix Guild setOwner example (#1383)
* fix Guild setOwner docs * hello s and bye s
This commit is contained in:
@@ -581,7 +581,7 @@ class Guild {
|
|||||||
* @returns {Promise<Guild>}
|
* @returns {Promise<Guild>}
|
||||||
* @example
|
* @example
|
||||||
* // edit the guild owner
|
* // edit the guild owner
|
||||||
* guild.setOwner(guilds.members[0])
|
* guild.setOwner(guild.members.first())
|
||||||
* .then(updated => console.log(`Updated the guild owner to ${updated.owner.username}`))
|
* .then(updated => console.log(`Updated the guild owner to ${updated.owner.username}`))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user