We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bit of a two in one, color might also be of some use to expand this later on.
TypeScript, in it's standard use, would only allow color to be of type number, but some things can be worked around if it needs to be done.
if (Array.isArray(embed.color)) embed.color = randomItem(embed.color); else if (embed.color === 'RANDOM') embed.color = Math.ceil(Math.random() * 0xFFFFFF); else if (embed.color.startsWith('#')) embed.color = parseInt(embed.color.replace(/^#?/, ''), 16);
The text was updated successfully, but these errors were encountered:
sudojunior
No branches or pull requests
A bit of a two in one, color might also be of some use to expand this later on.
The text was updated successfully, but these errors were encountered: