From 4aa82b4fdfccdec323930a9ad6df09d718658026 Mon Sep 17 00:00:00 2001 From: "Mr. Sakamoto" Date: Sat, 15 Apr 2017 23:13:20 +0300 Subject: [PATCH] fix Guild setOwner example (#1383) * fix Guild setOwner docs * hello s and bye s --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 7ebdc8ed4..517df9e4c 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -581,7 +581,7 @@ class Guild { * @returns {Promise} * @example * // 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}`)) * .catch(console.error); */