Customizing Discord Bot Embed Messages

Hey everyone! I’m working on a Discord bot and I’m trying to figure out how to make the embed messages look better. I want to add the bot’s profile picture to the right side of the embed. Here’s what I’ve got so far:

if (message.content.toLowerCase().includes('help')) {
  await channel.send({
    embeds: [{
      title: 'Bot Commands',
      color: 0x3498db,
      description: 'Here are some commands you can use:\n\n• Type **!info** for general info\n• Use **!stats** to see your stats\n• Try **!daily** for a daily reward'
    }]
  });
}

Does anyone know how to add the bot’s image to this embed? Also, I’m wondering if there’s a way to mention the user who triggered the command in the embed message. Any help would be awesome! Thanks in advance!

I’ve been working with Discord bots for a while, and I can share some tips on customizing embed messages. To add the bot’s profile picture, you can use the setThumbnail method in your embed. It’s pretty straightforward:

.setThumbnail(message.client.user.displayAvatarURL())

As for mentioning the user who triggered the command, you can include their mention in the description like this:

description: `Hey ${message.author}, here are the commands:`

One thing to keep in mind is that mentions in embeds don’t trigger notifications, so if you want to ensure the user gets notified, you might want to mention them in a separate message before sending the embed.

Also, consider using fields for a cleaner layout of your commands. It can make your embed look more organized and easier to read. Hope this helps with your bot development!

I’ve worked with Discord bots before, and I can offer some advice on customizing your embed messages. To add the bot’s profile picture, you can use the thumbnail property in your embed object. Here’s how you’d modify your code:

thumbnail: { url: message.client.user.displayAvatarURL({ dynamic: true, size: 128 }) }

For mentioning the user who triggered the command, you can include their mention in the description like this:

description: `Hello ${message.author}, here are some commands you can use:`

Keep in mind that mentions in embeds don’t trigger notifications. If you want to ensure the user gets notified, you might want to send a separate message with the mention before the embed.

Consider using fields for your commands list. It can make your embed more organized and easier to read. Good luck with your bot development!

yo, i can help with that! for the bot pic, use .setThumbnail(client.user.displayAvatarURL()) in ur embed. to mention the user, just add ${message.author} in the description.

btw, u might wanna use fields for ur commands, makes it look cleaner. good luck with ur bot!