Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Update giveawayRerolled.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sandarutharuneth committed Jan 6, 2023
1 parent 0b3b130 commit 3ec6a40
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions events/giveaways/giveawayRerolled.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
const { MessageEmbed, MessageButton, MessageActionRow } = require("discord.js")
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');

module.exports = {
async execute(giveaway, winners) {
winners.forEach((member) => {
member.send({
components: [new MessageActionRow()

components: [new ActionRowBuilder()
.addComponents(
new MessageButton()
new ButtonBuilder()
.setLabel("Jump to the Giveaway")
.setStyle("LINK")
.setStyle(ButtonStyle.Link)
.setURL(`https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}`)
.setEmoji('973495590921043968'),
new MessageButton()
new ButtonBuilder()
.setLabel("Vote Me")
.setStyle("LINK")
.setURL("https://discordbotlist.com/bots/ivon/upvote")
.setEmoji('974160940197113916'),
new MessageButton()
.setStyle(ButtonStyle.Link)
.setURL("https://top.gg/bot/973436715819745290/vote")
.setEmoji('960895425567666246'),
new ButtonBuilder()
.setLabel("Invite Me")
.setStyle("LINK")
.setStyle(ButtonStyle.Link)
.setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
.setEmoji('984296691794583582'))],
embeds: [new MessageEmbed()
.setAuthor({name: "Congratulations!", iconURL: (process.env.THUMBNAIL)})
.setThumbnail(process.env.THUMBNAIL)

embeds: [new Discord.EmbedBuilder()
.setAuthor({name: "Congratulations!", iconURL: ('https://i.imgur.com/sB02Hbz.png')})
.setThumbnail('https://i.imgur.com/sB02Hbz.png')
.setColor("#2F3136")
.setDescription(`Hello there ${member.user}\n Host of the giveaway rerolled and you have won the Giveaway on **[This Server](https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId})**\nGood Job On Winning **${giveaway.prize}!**\n DM ${giveaway.hostedBy} to claim your prize!!`)
.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://i.imgur.com/uQFQGrH.png')
.setTimestamp()
.setFooter({
text: "©️ IVON",
iconURL: (process.env.FOOTERIMG)
iconURL: ('https://i.imgur.com/sB02Hbz.png')
})
]
}).catch(e => {})
Expand Down

0 comments on commit 3ec6a40

Please sign in to comment.