Zenyd
Zenyd
DIAdiscord.js - Imagine a bot
Created by Zenyd on 3/9/2024 in #djs-questions
How can i tag the message sender
if(interaction.commandName === 'vouch'){
const embed = new EmbedBuilder()
.setTitle("Vouch!")
.setDescription(`It would be nice if you can leave a vouch! <#1215852789947830334>\nadd picture + tag ${} on it!.`)
.setColor("#00ff00")
.setFooter({
text: ":two_hearts:",
});
interaction.reply({ embeds: [embed] });
}
if(interaction.commandName === 'vouch'){
const embed = new EmbedBuilder()
.setTitle("Vouch!")
.setDescription(`It would be nice if you can leave a vouch! <#1215852789947830334>\nadd picture + tag ${} on it!.`)
.setColor("#00ff00")
.setFooter({
text: ":two_hearts:",
});
interaction.reply({ embeds: [embed] });
}
7 replies
DIAdiscord.js - Imagine a bot
Created by Zenyd on 3/9/2024 in #djs-questions
How can i make an add role command
im using slash commands so how can i add a command that adds a specific role to a defined user?
client.on('interactionCreate', (interaction) => {
if (!interaction.isChatInputCommand()) return;

//commands go here

});
client.on('interactionCreate', (interaction) => {
if (!interaction.isChatInputCommand()) return;

//commands go here

});
and i use a const commands array to register / commands
9 replies