27 lines
No EOL
1.3 KiB
JavaScript
27 lines
No EOL
1.3 KiB
JavaScript
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
|
|
|
|
module.exports = {
|
|
async execute(giveaway, member) {
|
|
return 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'))],
|
|
|
|
embeds: [new EmbedBuilder()
|
|
.setTimestamp()
|
|
.setAuthor({ name: "Reaction Removed!", iconURL: "https://ellie.gcoms.xyz/Ellise.png" })
|
|
.setTitle('Did You Just Remove a Reaction From A Giveaway?')
|
|
.setColor("#2F3136")
|
|
.setDescription(
|
|
`<:DotPink:1002212468870877304> Your entery to **${giveaway.prize}** on [This Server](https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}) have been removed!\n <:DotPink:1002212468870877304> This means you're removed as a valid giveaway participant.\n <:DotGreen:1002212464345239643> Think It was a mistake? **Go react again!**`
|
|
)
|
|
.setFooter({ text: "©️ Holana", iconURL: ('https://ellie.gcoms.xyz/Ellise.png') })
|
|
]
|
|
}).catch(e => {})
|
|
}
|
|
} |