Androz2091 / discord-giveaways

🎉 Complete framework to facilitate the creation of giveaways using discord.js
https://discord-giveaways.js.org
MIT License
335 stars 127 forks source link

Fix embedColor: hex & [255, 0, 255] = undefined #394

Closed Tomato6966 closed 3 years ago

Tomato6966 commented 3 years ago

Discord.Util.resolveColor needs to be saved on a variable, otherwise you check like a hex string example:

let color = "#ffee33";
Discord.Util.resolveColor(color);
console.log(color) //"#ffee33";

BUT:

let color = "#ffee33";
color = Discord.Util.resolveColor(color);
console.log(color) //16772659;

https://cdn.discordapp.com/attachments/877178666046599200/909884987996782593/unknown.png

Changes

Status

Nico105 commented 3 years ago

thanks but fix is already in the dev branch

Tomato6966 commented 3 years ago

oh didn't know that