@anitrack/patreon-wrapper 1.2.9 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Patreon Wrapper 🍊
2
- Discord Patreon Wrapper for [AniTrack](https://anitrack.co) on node.js
2
+ An Simple Patreon Wrapper with much cleaner responses. Patreon. Why u do dis..
3
3
 
4
4
  ## Table of Contents
5
5
  - [Installing](#installing)
@@ -73,7 +73,7 @@ Clean Response Example
73
73
  status: 'active_patron',
74
74
  tier: {
75
75
  id: '12345678',
76
- title: 'Supporter 1'
76
+ title: 'First Tier'
77
77
  },
78
78
  cents: 500, // 5 USD
79
79
  willPayCents: 500,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anitrack/patreon-wrapper",
3
- "version": "1.2.9",
3
+ "version": "1.3.2",
4
4
  "description": "Discord Patreon wrapper for AniTrack",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib",
package/src/index.ts CHANGED
@@ -84,8 +84,11 @@ export class Patreon {
84
84
 
85
85
  const Patrons: Array<PatronType> = []
86
86
 
87
+ if (!res?.data?.data) return []
88
+ if (res.data.data.length == 0) return []
89
+
87
90
  res.data.data.forEach((Patron: any) => {
88
- // console.dir(Patron)
91
+ if (Patron.attributes.patron_status == 'declined_patron') return
89
92
 
90
93
  var socialInfo = res.data.included.find(
91
94
  (includePatron: any) =>