miramallows / patreon-discord

a patreon api v2 wrapper that allows you to grab your patrons' data easily without the hassle of dealing with scopes and the JSON:API spec standard.
19 stars 14 forks source link

... #4

Open amit717628 opened 2 years ago

amit717628 commented 2 years ago
   allPatronsSocials = [...allPatronsSocials, ...response.included]
                                                               ^

TypeError: response.included is not iterable at Campaign._scrapeData (/root/anti/node_modules/patreon-discord/class/campaign.js:23:68) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Campaign.fetchPatrons (/root/anti/node_modules/patreon-discord/class/campaign.js:56:76) at async Function.findOrCreatePatron (/root/anti/src/utils/patron.js:11:31) at async messageCreate.run (/root/anti/src/events/Client/messageCreate.js:99:9)

FraglyG commented 1 year ago

I'm getting this as well, anyone have a fix yet?