36 lines
1.8 KiB
JavaScript
36 lines
1.8 KiB
JavaScript
|
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
|
||
|
|
||
|
module.exports = {
|
||
|
async execute(giveaway, winners) {
|
||
|
winners.forEach((member) => {
|
||
|
member.send({
|
||
|
|
||
|
components: [new ActionRowBuilder()
|
||
|
.addComponents(
|
||
|
new ButtonBuilder()
|
||
|
.setLabel("Jump to the Giveaway")
|
||
|
.setStyle(ButtonStyle.Link)
|
||
|
.setURL(`https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}`)
|
||
|
.setEmoji('973495590921043968'),
|
||
|
new ButtonBuilder()
|
||
|
.setLabel("Invite Me")
|
||
|
.setStyle(ButtonStyle.Link)
|
||
|
.setURL("https://discord.com/api/oauth2/authorize?client_id=726333575091454002&permissions=406881561681&scope=bot%20applications.commands")
|
||
|
.setEmoji('984296691794583582'))],
|
||
|
|
||
|
embeds: [new EmbedBuilder()
|
||
|
.setAuthor({name: "Congratulations!", iconURL: ('https://ellie.gcoms.xyz/Ellise.png')})
|
||
|
.setThumbnail('https://ellie.gcoms.xyz/Ellise.png')
|
||
|
.setColor("#2F3136")
|
||
|
.setDescription(`<:DotYellow:1002212470812852245> Hello there ${member.user}\n<:DotGreen:1002212464345239643> Host of the giveaway rerolled and you won the Giveaway!\n<:DotGreen:1002212464345239643> Good Job On Winning **${giveaway.prize}!** <:confetti:984296694357319730><:confetti:984296694357319730>\n<:DotGreen:1002212464345239643> DM ${giveaway.hostedBy} to claim your prize!!`)
|
||
|
.setImage('https://ellie.gcoms.xyz/Ellise.png')
|
||
|
.setTimestamp()
|
||
|
.setFooter({
|
||
|
text: "©️ Holana",
|
||
|
iconURL: ('https://ellie.gcoms.xyz/Ellise.png')
|
||
|
})
|
||
|
]
|
||
|
}).catch(e => {})
|
||
|
});
|
||
|
}
|
||
|
}
|