prettiered
diff --git a/src/utils/database.ts b/src/utils/database.ts
index c9b6a8d..5386f7f 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -144,8 +144,13 @@
}
async staffChannels(): Promise<string[]> {
- const entries = await this.guilds.find({ "logging.staff.channel": {$exists: true}}, { projection: { "logging.staff.channel": 1, _id: 0 } }).toArray();
- return entries.map(e => e.logging.staff.channel!);
+ const entries = await this.guilds
+ .find(
+ { "logging.staff.channel": { $exists: true } },
+ { projection: { "logging.staff.channel": 1, _id: 0 } }
+ )
+ .toArray();
+ return entries.map((e) => e.logging.staff.channel!);
}
}
diff --git a/src/utils/getEmojiByName.ts b/src/utils/getEmojiByName.ts
index 19b88b4..ebcb257 100644
--- a/src/utils/getEmojiByName.ts
+++ b/src/utils/getEmojiByName.ts
@@ -1,4 +1,4 @@
-import emojis from "../config/emojis.js"
+import emojis from "../config/emojis.js";
import _ from "lodash";
interface EmojisIndex {
@@ -18,8 +18,7 @@
}
getEmojiPaths(emojis);
-
-function getEmojiByName(name: typeof EMOJIPATHS[number], format?: string): string {
+function getEmojiByName(name: (typeof EMOJIPATHS)[number], format?: string): string {
const parts = name.split(".");
let id: string | EmojisIndex | EmojisIndex[] | undefined = emojis;
for (const part of parts) {