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 authored Jul 29, 2022
1 parent 431e266 commit 51d569d
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions events/giveaways/giveawayRerolled.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
const Discord = require("discord.js")
const { MessageEmbed, MessageButton, MessageActionRow } = require("discord.js")
module.exports = {
async execute(giveaway, winners) {
winners.forEach((member) => {
member.send({
embeds: [new Discord.MessageEmbed()
components: [new MessageActionRow()
.addComponents(
new MessageButton()
.setLabel("Jump to the Giveaway")
.setStyle("LINK")
.setURL(`https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}`)
.setEmoji('973495590921043968'),
new MessageButton()
.setLabel("Vote Me")
.setStyle("LINK")
.setURL("https://discordbotlist.com/bots/ivon/upvote")
.setEmoji('974160940197113916'),
new MessageButton()
.setLabel("Invite Me")
.setStyle("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)
.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})**\n Good Job On Winning **${giveaway.prize}!** <:confetti:973495590921043968><:confetti:973495590921043968>\nDirect Message the host to claim your prize!! \n\n [Invite](https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands) | [Twitter](https://twitter.com/razerofficials) | [Patreon](https://www.patreon.com/projectrazer)`)
.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 the host to claim your prize!!`)
.setTimestamp()
.setFooter({
text: "©️ IVON",
Expand Down

0 comments on commit 51d569d

Please sign in to comment.