discord-giveaway-easy
Version:
A module allowing the simple creation of a discord giveaway with your bot supported by Discord.js^14.0.0
62 lines (48 loc) • 1.47 kB
JavaScript
const Discord = require("discord.js")
/**
* @typedef GiveawaysStartOptions
*
* @property {String} [time]
* @property {Number} [winnerNumber]
* @property {Discord.ButtonStyle} [buttonType]
* @property {String} [prize]
* @property {Discord.Message} [interaction]
*/
exports.GiveawaysStartOptions = {}
/**
* @typedef EmbedGeneratorOptions
*
* @property {Number} [winnerNumber]
* @property {Discord.Message} [interaction]
* @property {String} [Title]
* @property {String} [Color]
* @property {String} [Emoji]
* @property {Array} [winnerRandom]
* @property {String} [entries]
* @property {Discord.Message} [messageEditable]
*
*/
exports.EmbedGeneratorOptions = {};
/**
* @typedef MessageGiveaways
*
* @property {String} [giveaway="🎉🎉 **GIVEAWAY** 🎉🎉"]
* @property {String} [giveawayEnded="🎉🎉 **GIVEAWAY ENDED** 🎉🎉"]
* @property {String} [giveawayStoped="🎉🎉 **GIVEAWAY STOPPED** 🎉🎉"]
*
*/
exports.MessageGiveaways = {
giveaway: '🎉🎉 **GIVEAWAY** 🎉🎉',
giveawayEnded: '🎉🎉 **GIVEAWAY ENDED** 🎉🎉',
giveawayStoped: '🎉🎉 **GIVEAWAY STOPPED** 🎉🎉'
}
/**
* @typedef CreateInteraction
*
* @property {Discord.ButtonStyle} [buttonStyle]
* @property {String} [buttonEmoji]
* @property {Number} [winnerNumber]
* @property {Discord.Client} [client]
*
*/
exports.CreateInteraction = {}