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:
parent
2737b843ca
commit
3a81864cb7
6 changed files with 72 additions and 12 deletions
3
backend/src/utils/rgbToInt.ts
Normal file
3
backend/src/utils/rgbToInt.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function rgbToInt(rgb: [number, number, number]) {
|
||||
return (rgb[0] << 16) + (rgb[1] << 8) + rgb[2];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue