mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 00:02:52 +00:00
docs(Guild): handle error in example of fetchInvites correctly (#2568)
This commit is contained in:
parent
f23b61794c
commit
13880fe7de
1 changed files with 1 additions and 1 deletions
|
|
@ -484,7 +484,7 @@ class Guild {
|
||||||
* // Fetch invite creator by their id
|
* // Fetch invite creator by their id
|
||||||
* guild.fetchInvites()
|
* guild.fetchInvites()
|
||||||
* .then(invites => console.log(invites.find(invite => invite.inviter.id === '84484653687267328')))
|
* .then(invites => console.log(invites.find(invite => invite.inviter.id === '84484653687267328')))
|
||||||
* .then(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
fetchInvites() {
|
fetchInvites() {
|
||||||
return this.client.rest.methods.getGuildInvites(this);
|
return this.client.rest.methods.getGuildInvites(this);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue