oneyz_
oneyz_
Explore posts from servers
DIAdiscord.js - Imagine a boo! 👻
Created by oneyz_ on 1/9/2024 in #djs-questions
Edit embed in DM
thanks, already make it
6 replies
DIAdiscord.js - Imagine a boo! 👻
Created by oneyz_ on 1/9/2024 in #djs-questions
Edit embed in DM
fragment class 'warn.js':
const warnDM = target.user.send ({
embeds: [
new EmbedBuilder()
.setTitle(`Warn for - ${target.user.tag}`)
.setDescription(`info guild (${interaction.guild.name})`)
.setColor('Red')
.addFields(
{ name: 'Administrator', value: `${administrator}`, inline: true },
{ name: '\u200b', value: '\u200b', inline: true },
{ name: 'Reason', value: `${reason}`, inline: true },
{ name: '\u200b', value: '\u200b', inline: true }
)
.setThumbnail(avatarTargetURL)
.setFooter(
{
text: 'smth of appeal',
iconURL: 'https://i.imgur.com/dXAkEzI.png'
}
)
.setTimestamp()
],
components: [
new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setLabel("Appeal")
.setStyle(ButtonStyle.Success)
.setCustomId("appeal-warn")
)
]
});
const warnDM = target.user.send ({
embeds: [
new EmbedBuilder()
.setTitle(`Warn for - ${target.user.tag}`)
.setDescription(`info guild (${interaction.guild.name})`)
.setColor('Red')
.addFields(
{ name: 'Administrator', value: `${administrator}`, inline: true },
{ name: '\u200b', value: '\u200b', inline: true },
{ name: 'Reason', value: `${reason}`, inline: true },
{ name: '\u200b', value: '\u200b', inline: true }
)
.setThumbnail(avatarTargetURL)
.setFooter(
{
text: 'smth of appeal',
iconURL: 'https://i.imgur.com/dXAkEzI.png'
}
)
.setTimestamp()
],
components: [
new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setLabel("Appeal")
.setStyle(ButtonStyle.Success)
.setCustomId("appeal-warn")
)
]
});
6 replies