seishin
seishin
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
Hi everybody, [email protected] node v22.7.0
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');

const d = new SlashCommandBuilder()
.setName('embed')
.setDescription('tests embed');

module.exports = {
data: d,
async execute(message){
const embed = new EmbedBuilder()
.setTitle("Roll")
.setDescription("un lancer : 4")
.setColor("#00b0f4")
.setTimestamp();
const now = new Date().toISOString().replace('T', ' ');

await message.reply({ content:now, embeds: [embed] })
.then(msg => setTimeout(()=>msg.delete(), 5000));
}
};
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');

const d = new SlashCommandBuilder()
.setName('embed')
.setDescription('tests embed');

module.exports = {
data: d,
async execute(message){
const embed = new EmbedBuilder()
.setTitle("Roll")
.setDescription("un lancer : 4")
.setColor("#00b0f4")
.setTimestamp();
const now = new Date().toISOString().replace('T', ' ');

await message.reply({ content:now, embeds: [embed] })
.then(msg => setTimeout(()=>msg.delete(), 5000));
}
};
This command dispalys the content but not the embed... No error in log file nor display, just the ignored embed Any idea ?
22 replies