const Discord = require("discord.js")
const client = new Discord.Client()
const Giveaway = require("discord.js-giveaway")
const giveaway = Giveaway(client, {})
//Giveaway has 2 variables: client and options
client.login(token)
name | optional | description | default value | type |
---|---|---|---|---|
prefix | yes | This is the prefix your bot will react to. | "!" | string |
startCmd | yes | This command starts a giveaway. | "giveawaystart" | string |
giveawayRole | yes | ID of a role, that is permitted to start giveaways. * default: @everyone | null | string |
embedColor | yes | Color of the giveaway's embed. | "#7aefe0" | string |
reactEmote | yes | The emote that you have to react with. | "✅" | string |