3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

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 2737b843ca
commit 3a81864cb7
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];
}