Elrol
Elrol
DIAdiscord.js - Imagine an app
Created by Elrol on 2/22/2024 in #djs-questions
Color Check for String
I was wanting to see how I would go about validating a string as a color. I am using a command to change the color of the member's role and if you input anything that isn't valid it kills the bot. I am mainly wanting something like new Color(colorString); and checking if that isn't null before passing it to the role.setColor() function
10 replies