forked from Supositware/Haha-Yes
fix hex color
This commit is contained in:
parent
c03b3ccadd
commit
84eb792374
1 changed files with 2 additions and 1 deletions
|
@ -258,7 +258,6 @@ class messageListener extends Listener {
|
||||||
if (!quote) return;
|
if (!quote) return;
|
||||||
|
|
||||||
let Embed = this.client.util.embed()
|
let Embed = this.client.util.embed()
|
||||||
.setColor(quote.member.displayHexColor)
|
|
||||||
.setAuthor(quote.author.username, quote.author.displayAvatarURL())
|
.setAuthor(quote.author.username, quote.author.displayAvatarURL())
|
||||||
.addField('Jump to', `[message](https://discordapp.com/channels/${message.guild.id}/${channelID}/${messageID})`, true)
|
.addField('Jump to', `[message](https://discordapp.com/channels/${message.guild.id}/${channelID}/${messageID})`, true)
|
||||||
.addField('In channel', quote.channel.name, true)
|
.addField('In channel', quote.channel.name, true)
|
||||||
|
@ -266,6 +265,8 @@ class messageListener extends Listener {
|
||||||
.setDescription(quote.content)
|
.setDescription(quote.content)
|
||||||
.setTimestamp(quote.createdTimestamp);
|
.setTimestamp(quote.createdTimestamp);
|
||||||
|
|
||||||
|
if (quote.member) Embed.setColor(quote.member.displayHexColor);
|
||||||
|
|
||||||
if (guild.id != message.guild.id) Embed.addField('In guild', guild.name, true);
|
if (guild.id != message.guild.id) Embed.addField('In guild', guild.name, true);
|
||||||
let Attachment = (quote.attachments).array();
|
let Attachment = (quote.attachments).array();
|
||||||
if (Attachment[0]) Embed.setImage(Attachment[0].url);
|
if (Attachment[0]) Embed.setImage(Attachment[0].url);
|
||||||
|
|
Loading…
Reference in a new issue