Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Color on discord.js embed text

Is there a way to change the color of text for certain sections of a discord.js embed?

  .setColor('#0099ff')
    .setTitle('~__Command Hewp__~')
  .addFields(
    { name: `**${prefix + 'help'}**`, value: `Usage: ${prefix + 'help'}` },
    { name: `${prefix + 'purge'}`, value: `Usage: ${prefix + 'purge'} <# of Messages, max 100>` },
    { name: `${prefix + 'kick'}`, value: `Usage: ${prefix + 'kick'} <target user>` },
    { name: `${prefix + 'ban'}`, value: `Usage: ${prefix + 'ban'} <target user>` },
     );
     message.channel.send(help)```
like image 330
YeetLord591 Avatar asked Nov 01 '25 14:11

YeetLord591


1 Answers

Unfortunately, Discord does not support changing the color of text. The only option is to use code blocks in field.value, but it doesn't look very good.

like image 114
Cipher Avatar answered Nov 04 '25 07:11

Cipher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!