Closed Shashank3736 closed 2 years ago
Is there any eta when the new discord-giveaways
going to be released with the solution? Currently, we can use the develop
branch or send numbers instead of strings, but still having it released on npm will be gr8.
Same thing
I think it's because of Discord.Util.resolveColor returning Something, not changing the value you pass in so it should be something like this:
const validateEmbedColor = (embedColor) => {
try {
var embedColorNum = Discord.Util.resolveColor(embedColor);
if (!isNaN(embedColorNum) && typeof embedColorNum === 'number') return true;
else return false;
} catch {
return false;
}
};
Proof:
the fix pr is alread merged in dev
v5.1.0 has been released
Describe the bug
options.embedColor is not working in GiveawayStartOption.
To Reproduce
Start a giveaway and in options.embedColor put "GREEN"
Expected behavior
A green color in embed for giveaway but receive default one.
Additional context
discord-giveaways
: v5.0.1discord.js
version: v13.1.0Add any other context about the problem here. The problem is there because of
validateEmbedColor
method. As this method do not allowstring
embedColor option.