It is necessary to have the message sent to Embed (so it could be the specified parameters (color, author, title, description, addField, content message) Example: https://embedbuilder.nadekobot.me/
const arg = message.content.slice().trim().split(/ +/g);
let name = arg[1];
if (!name) return message.channel.send(channelEmbed);
let anonce = args.slice(1).join();
if(!anonce) return message.channel.send(anonceEmbed);
let anoncechannel = message.guild.channels.find(`name`, name);
anoncechannel.sendEmbed(anonce)

.sendEmbed()is deprecated. You should only use.send()