From 27fcb64187928b46422376458cbd1dc59b9813c6 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 f106647ce..ce2382bb2 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -482,7 +482,7 @@ class Guild extends Base { * // 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.api.guilds(this.id).invites.get()