Created
November 1, 2017 12:59
-
-
Save olvrb/4eb08cb1ab2da84055e806cb0e355dd5 to your computer and use it in GitHub Desktop.
send random color discord js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message.channel.send({ | |
embed: { | |
color: Math.floor(Math.random() * 16777214) + 1, //random color between one and 16777214 (dec) | |
description: `Random color generated: ${randColor}\n${randColor} is equal to 0x${randColor.toString(16).toUpperCase()}` | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
randColor is not defined