From 13880fe7de8fcb19026d20fcd9d149f04bd7ef7b Mon Sep 17 00:00:00 2001 From: Adrien Brignon Date: Sun, 27 May 2018 20:51:58 +0200 Subject: [PATCH] docs(Guild): handle error in example of fetchInvites correctly (#2568) --- 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 d3b3320c7..2728e4b04 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -484,7 +484,7 @@ class Guild { * // Fetch invite creator by their id * guild.fetchInvites() * .then(invites => console.log(invites.find(invite => invite.inviter.id === '84484653687267328'))) - * .then(console.error); + * .catch(console.error); */ fetchInvites() { return this.client.rest.methods.getGuildInvites(this);