Skip to content

Instantly share code, notes, and snippets.

@olvrb
Created November 1, 2017 12:59
Show Gist options
  • Save olvrb/4eb08cb1ab2da84055e806cb0e355dd5 to your computer and use it in GitHub Desktop.
Save olvrb/4eb08cb1ab2da84055e806cb0e355dd5 to your computer and use it in GitHub Desktop.
send random color discord js
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()}`
}
});
@cmthzn
Copy link

cmthzn commented Dec 20, 2018

randColor is not defined

@BopItFreak
Copy link

laf of course @cmthzn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment