I have a question. I was wondering if it was possible to get an ID from an embed message that a discord bot sent. I can get the ID of a normal message that a Discord bot has sent, but when I send an embed, I don't get an ID from it. Does anyone know how I can solve this? I've tried many things, but I'm not getting any ID back from the last embed my Discord bot sent
Thanks in advance!
CODE:
module.exports =
{
name: "reactionrole",
description: "Sets up a reaction role message!",
category: "info",
usage: "Test <>",
async execute(message, args, cmd, _client, Discord)
{
const channel = '719992310988931143';
const channel_by_ID = _client.channels.cache.get(channel);
console.log("Chanel ID: " channel_by_ID) // --> Geef Chanel ID
console.log("Laatste message ID (USER): " channel_by_ID.lastMessageID) // --> Message ID
const yellowTeamRole = message.guild.roles.cache.find(role => role.name === "Davmin");
const yellowTeamEmoji = `