-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
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
cannot convert color to a number #10107
Comments
I can't seem to reproduce this issue, and it also looks like you're violating YouTube TOS and by proxy Discord's TOS so don't think you'd be getting much help because of that. |
Please use a minimal reproducible sample you tested outside of the context of your production code (or a reduced version) so we can test and evaluate it in isolation without a major setup. I do currently not see how I tested the following code const { EmbedBuilder } = require("discord.js");
console.log(new EmbedBuilder().setColor("Blurple")); which prints EmbedBuilder { data: { color: 5793266 } } without errors, as expected. |
i am aware that i might be violating youtubes tos but im not using a proxy? this bots was just made so i can listen to music without opening youtube, im using my own cookie too and im the only one using it, its not just this code either, its every line of code every time i try to create an embed builder, no matter what file or command it either gived me invalid permissions error or thhis error everytime i try to create an embed, also i will update that line of code to work on a standalone rq |
|
You have |
Usage error, not a bug in the library |
it is Blurple i just pasted from my test file lmao doesnt matter what it is, i can do hex codes and it will give same error |
doesnt matter what i do, ive tried color codes, hex colors and just simple text and it just gives the error everytime, i did the code above and console logged it and it outputted with no errors but as soon as i add channel.send to anything it gives that error |
As Souji said, it's an usage error, not a bug in the library, please ask in the Discord server if you need help using discord.js |
Which package is this bug report for?
discord.js
Issue description
Code sample
Versions
discord.js@latest
node@18.15.0
npm@9.5.0
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
GuildMessages
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: