Allow more color formats in !post_embed / !edit_embed -color

This commit is contained in:
Dragory 2020-08-09 20:21:01 +03:00
parent a641312853
commit 8826b2521d
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
6 changed files with 72 additions and 12 deletions

View file

@ -0,0 +1,3 @@
export function rgbToInt(rgb: [number, number, number]) {
return (rgb[0] << 16) + (rgb[1] << 8) + rgb[2];
}