Closed JoniXTech closed 2 years ago
@miramallows Having a look will be realy appreciated
@pauldb09 @JoniXTech Could I see your code snippets relevant to this?
That´s not working in the package:
async fetchPatrons (patronStatusFilter) {
const { allPatronsPledges: pledges, allPatronsSocials: socials } = await this._scrapeData();
const patrons = await this._sortData(pledges, socials, patronStatusFilter)
return patrons;
}
And i tried this in my code:
const { Campaign } = require('patreon-discord')
const myCampaign = new Campaign({
patreonToken: 'my patreonToken',
campaignId: 'my campaignId'
})
myCampaign.fetchPatrons(['active_patron', 'declined_patron'])
.then(patrons => {
console.log(patrons)
})
hey @JoniXTech, i couldn't recreate this bug. I imagine it might be related to missing your campaign ID or that your campaign ID is invalid?
there's a few ways to grab the campaign id, the easiest way is going to your main page of patreon (for me, it would be https://patreon.com/mimubot ) and type this in your console.
prompt('Campaign ID',window.patreon.bootstrap.creator.data.id);
from there you'll be prompted with a copy-pasteable campaign id :)
I got this error: