Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

277
Views
Discord bot image alignment

I am making a Discord bot for fun and I have no clue what I am doing, but I am trying to make a social command. I got it to work, but the image pushes to the right and is not aligned with the link. What could I do to fix this?

const Discord = require("discord.js")
exports.run = (client, message, args) => {
  const embed = new Discord.MessageEmbed()
  .setThumbnail("https://www.freeiconspng.com/uploads/hd-youtube-logo-png-transparent-background-20.png")
  .setDescription('[Click here!](https://support.discord.com/hc/en-us/community/posts/360038398572-Hyperlink-Markdown)')
  .setColor("#8a5b53")
  message.channel.send({embeds:[embed]})
}
module.exports.name = "socials"

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

So you are creating an embed and using a thumbnail for the image. Thumbnails automatically push to the top right.

Try using .setImage which will just put the image inside of the embed normally.

const Discord = require("discord.js")
exports.run = (client, message, args) => {
  const embed = new Discord.MessageEmbed()
  .setImage("https://www.freeiconspng.com/uploads/hd-youtube-logo-png-transparent-background-20.png")
  .setDescription('[Click here!](https://support.discord.com/hc/en-us/community/posts/360038398572-Hyperlink-Markdown)')
  .setColor("#8a5b53")
  message.channel.send({embeds:[embed]})
}
module.exports.name = "socials"

Also check out the embed guide.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!