Elrol
Elrol
DIAdiscord.js - Imagine an app
Created by Elrol on 2/22/2024 in #djs-questions
Color Check for String
I have it working now so its alright lol
10 replies
DIAdiscord.js - Imagine an app
Created by Elrol on 2/22/2024 in #djs-questions
Color Check for String
I had this:
try{
role.setColor(color);
} catch(err) {
console.error(err);
}
interaction.reply("Your color has been changed");
try{
role.setColor(color);
} catch(err) {
console.error(err);
}
interaction.reply("Your color has been changed");
But it was printing the error and still crashed the bot
10 replies
DIAdiscord.js - Imagine an app
Created by Elrol on 2/22/2024 in #djs-questions
Color Check for String
Going to give it a try lol
10 replies
DIAdiscord.js - Imagine an app
Created by Elrol on 2/22/2024 in #djs-questions
Color Check for String
That will help for the hex, I supposed I would also have to make an array of valid strings to check if it is one of those as well.
10 replies
DIAdiscord.js - Imagine an app
Created by Elrol on 2/22/2024 in #djs-questions
Color Check for String
Discord.JS: 14.14.1 NodeJS: 20.11.0
10 replies