#Set embed color to the role color for the bot?

1 messages · Page 1 of 1 (latest)

fervent ridge

Is there a way to set the color of an embedded message to the color of the bot's primary role in a server? I have a bot that responds with an embedded message when a command is sent, and I'd like to have the embed color set to the same color as the bot's username in whichever server the command was sent in. Is there a simple way of doing this?

Versions:
discord.js v14.14.1
node v20.10.0