Fix a bunch of linter errors
diff --git a/src/utils/generateEmojiEmbed.ts b/src/utils/generateEmojiEmbed.ts
index 65e11fa..c1de60f 100644
--- a/src/utils/generateEmojiEmbed.ts
+++ b/src/utils/generateEmojiEmbed.ts
@@ -2,9 +2,9 @@
import getEmojiByName from "./getEmojiByName.js";
const colors = {
- "Danger": 0xF27878,
- "Warning": 0xF2D478,
- "Success": 0x68D49E
+ Danger: 0xf27878,
+ Warning: 0xf2d478,
+ Success: 0x68d49e
};
class EmojiEmbed extends MessageEmbed {
@@ -12,7 +12,7 @@
_emoji: string | null = null;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-ignore
+ // @ts-expect-error
// This *is* meant to be an accessor rather than a property
override get title() {
if (!this._emoji) return this._title;
@@ -23,9 +23,18 @@
this._title = title;
}
- override setTitle(title: string) { this._title = title; return this; }
- setEmoji(emoji: string) { this._emoji = emoji; return this; }
- setStatus(color: "Danger" | "Warning" | "Success") { this.setColor(colors[color]); return this; }
+ override setTitle(title: string) {
+ this._title = title;
+ return this;
+ }
+ setEmoji(emoji: string) {
+ this._emoji = emoji;
+ return this;
+ }
+ setStatus(color: "Danger" | "Warning" | "Success") {
+ this.setColor(colors[color]);
+ return this;
+ }
}
-export default EmojiEmbed;
\ No newline at end of file
+export default EmojiEmbed;