mirror of
https://github.com/danbulant/Shasha
synced 2026-06-24 17:12:01 +00:00
fix: Unsupported Discord Default Colors
This commit is contained in:
parent
7ad96907a8
commit
a2c99a05d4
1 changed files with 1 additions and 4 deletions
|
|
@ -9,11 +9,8 @@ module.exports = function getColor(name) {
|
||||||
if (!name) {
|
if (!name) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof name === "string") {
|
|
||||||
name = name.toLowerCase();
|
|
||||||
}
|
|
||||||
if (typeof name === 'number') {
|
if (typeof name === 'number') {
|
||||||
if ( name === 16777215) {
|
if (name === 16777215) {
|
||||||
return 16777214;
|
return 16777214;
|
||||||
} else {
|
} else {
|
||||||
return name;
|
return name;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue