mirror of
https://github.com/danbulant/Shasha
synced 2026-06-16 04:41:21 +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) {
|
||||
return
|
||||
}
|
||||
if (typeof name === "string") {
|
||||
name = name.toLowerCase();
|
||||
}
|
||||
if (typeof name === 'number') {
|
||||
if ( name === 16777215) {
|
||||
if (name === 16777215) {
|
||||
return 16777214;
|
||||
} else {
|
||||
return name;
|
||||
|
|
|
|||
Loading…
Reference in a new issue