This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
giveaway image #26
-
any possibility to add an embedImage on giveaway after use start? like put an image from the game or thing u are giving.. |
Beta Was this translation helpful? Give feedback.
Answered by
sandarutharuneth
Oct 7, 2023
Replies: 1 comment 2 replies
-
You can easily add that on start.js Update the slash commands options. ( Add this right after description option ) {
name: 'image',
description: 'Add and image to the extra details embed',
type: ApplicationCommandOptionType.String,
required: false
}, Import the image component const image = interaction.options.getString('image'); Update the code on line 151 - 165 if (invite) {
let des = new Discord.EmbedBuilder()
.setAuthor({ name: `Extra Details` })
.setDescription(`${invite}`)
.setImage(`${image}`)
.setColor("#2F3136");
const row = new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
.setLabel('Twitter')
.setStyle(ButtonStyle.Link)
.setURL(`https://twitter.com/ivongiveaways`))
giveawayChannel.send({ embeds: [des], components: [row] });
} Now you have a optional feature to add images to the giveaway! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then you have to customize it yourself for your liking.