Still got errors and warnings, mostly the same and easy to fix
diff --git a/src/utils/getEmojiByName.ts b/src/utils/getEmojiByName.ts
index 80410df..63b2042 100644
--- a/src/utils/getEmojiByName.ts
+++ b/src/utils/getEmojiByName.ts
@@ -1,8 +1,8 @@
-import emojis from '../config/emojis.json' assert {type: 'json'};
+import emojis from "../config/emojis.json" assert {type: "json"};
function getEmojiByName(name: string, format?: string): string {
- let split = name.split(".");
- let id = emojis
+ const split = name.split(".");
+ let id = emojis;
split.forEach(part => {
id = id[part];
});
@@ -11,9 +11,9 @@
return id.toString();
}
if (id === undefined) {
- return `<a:_:946346549271732234>`
+ return "<a:_:946346549271732234>";
} else if (id.toString().startsWith("a")) {
- return `<a:_:${id.toString().slice(1, id.toString().length)}>`
+ return `<a:_:${id.toString().slice(1, id.toString().length)}>`;
}
return `<:_:${id}>`;
}