Embed User Input
I am looking to accept a user input to fill in a few values in my embed command. How would I go about doing that? I attached a photo of the design that I am trying to access to help clarify if needed!
const { SlashCommandBuilder } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('mapwipe')
.setDescription('Map Wipe Announcement'),
async execute(interaction) {
//await interaction.deferReply();
const exampleEmbed = new EmbedBuilder()
.setColor(0xef2929)
.setTitle('Rust Map Wipe')
.setURL('https://i.imgur.com/dlecsVP.png')
.setAuthor({ name: 'Dads After Dark', iconURL: 'https://i.imgur.com/dlecsVP.png', url: 'https://i.imgur.com/dlecsVP.png' })
.setDescription('Map Wipe Map Announcement')
.addFields(
{ name: 'Map Announcement', value: 'https://rustmaps.com/map/3500_547795017' },
//.addFields({ name: 'Inline field title', value: 'Some value here', inline: true })
)
.setImage('https://content.rustmaps.com/maps/247/81d3439dceb346fb96bbb1acb8f64044/thumbnail.png')
.setTimestamp()
//.setFooter({ text: 'Some footer text here', iconURL: 'https://i.imgur.com/dlecsVP.png' });
await interaction.reply({ embeds: [exampleEmbed] })
},
};const { SlashCommandBuilder } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('mapwipe')
.setDescription('Map Wipe Announcement'),
async execute(interaction) {
//await interaction.deferReply();
const exampleEmbed = new EmbedBuilder()
.setColor(0xef2929)
.setTitle('Rust Map Wipe')
.setURL('https://i.imgur.com/dlecsVP.png')
.setAuthor({ name: 'Dads After Dark', iconURL: 'https://i.imgur.com/dlecsVP.png', url: 'https://i.imgur.com/dlecsVP.png' })
.setDescription('Map Wipe Map Announcement')
.addFields(
{ name: 'Map Announcement', value: 'https://rustmaps.com/map/3500_547795017' },
//.addFields({ name: 'Inline field title', value: 'Some value here', inline: true })
)
.setImage('https://content.rustmaps.com/maps/247/81d3439dceb346fb96bbb1acb8f64044/thumbnail.png')
.setTimestamp()
//.setFooter({ text: 'Some footer text here', iconURL: 'https://i.imgur.com/dlecsVP.png' });
await interaction.reply({ embeds: [exampleEmbed] })
},
};