Comparing version 1.0.0 to 2.0.0
@@ -7,3 +7,3 @@ { | ||
"deprecated": false, | ||
"description": "Giftix | Event Handler", | ||
"description": "Event Handler | By creating advanced giveaways with Giftix, you can improve your social media accounts and gain organic lift!", | ||
"keywords": [ | ||
@@ -17,3 +17,3 @@ "giftix", | ||
"name": "giftix", | ||
"version": "1.0.0" | ||
"version": "2.0.0" | ||
} |
# Giftix | Event Handler | ||
## Installation | ||
- `npm install giftix --save` or `yarn add giftix` | ||
```js | ||
const Giftix = require("giftix"); | ||
@@ -8,4 +13,8 @@ | ||
intents: [ | ||
"BOOST", | ||
"UNBOOST" | ||
"BOOST", | ||
"UNBOOST", | ||
"GIVEAWAY_JOIN", | ||
"GIVEAWAY_FINISH", | ||
"GIVEAWAY_REROLL", | ||
"GIVEAWAY_CREATE", | ||
] // Join our Discord server to intents list and event names | ||
@@ -26,2 +35,19 @@ }); | ||
}); | ||
giftixClient.on("giveawayJoin", ({ user, giveaway }) => { | ||
console.log(`${user.username} joined the ${giveaway.title} giveaway.`); | ||
}); | ||
giftixClient.on("giveawayFinish", ({ giveaway, winners }) => { | ||
console.log(`${giveaway.title} has been ended. Winners: ${winners.map(_w => _w.id).join(",")}`); | ||
}); | ||
giftixClient.on("giveawayReroll", ({ giveaway, winners }) => { | ||
console.log(`${giveaway.title} has been rerolled. New Winners: ${winners.map(_w => _w.id).join(",")}`); | ||
}); | ||
giftixClient.on("giveawayDelete", giveaway => { | ||
console.log(`${giveaway.title} has been deleted.`); | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13972
51
0