mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
docs(Guild): handle error in example of fetchInvites correctly (#2568)
This commit is contained in:
@@ -482,7 +482,7 @@ class Guild extends Base {
|
|||||||
* // 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.api.guilds(this.id).invites.get()
|
return this.client.api.guilds(this.id).invites.get()
|
||||||
|
|||||||
Reference in New Issue
Block a user