docs(Guild): handle error in example of fetchInvites correctly (#2568)

This commit is contained in:
Adrien Brignon
2018-05-27 20:51:58 +02:00
committed by SpaceEEC
parent 5494f8e3bd
commit 27fcb64187

View File

@@ -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()