Still got errors and warnings, mostly the same and easy to fix
diff --git a/src/utils/generateEmojiEmbed.ts b/src/utils/generateEmojiEmbed.ts
index 8fe594b..7587db7 100644
--- a/src/utils/generateEmojiEmbed.ts
+++ b/src/utils/generateEmojiEmbed.ts
@@ -1,16 +1,17 @@
-import Discord, { CommandInteraction, ColorResolvable, MessageEmbed } from "discord.js";
+import { MessageEmbed } from "discord.js";
import getEmojiByName from "./getEmojiByName.js";
const colors = {
"Danger": 0xF27878,
"Warning": 0xF2D478,
"Success": 0x68D49E
-}
+};
class EmojiEmbed extends MessageEmbed {
_title: string;
_emoji: string;
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// This *is* meant to be an accessor rather than a property
get title() {
@@ -21,9 +22,9 @@
this._title = title;
}
- setTitle(title: string) { this._title = title; return this }
- setEmoji(emoji: string) { this._emoji = emoji; return this }
- setStatus(color: string) { this.setColor(colors[color]); return this }
+ setTitle(title: string) { this._title = title; return this; }
+ setEmoji(emoji: string) { this._emoji = emoji; return this; }
+ setStatus(color: string) { this.setColor(colors[color]); return this; }
}
export default EmojiEmbed;
\ No newline at end of file