Adds Event system and automatic messages

This commit is contained in:
Michel Fedde 2025-05-25 16:07:09 +02:00
parent 0e10ea3cab
commit 2f826fbf36
20 changed files with 428 additions and 18 deletions

View file

@ -2,7 +2,7 @@ import {Routes} from "discord.js";
import {DiscordClient} from "../Discord/DiscordClient";
export class IconCache {
private existingIcons: Map<string, string>|null;
private existingIcons: Map<string, string> | undefined;
constructor(
private readonly client: DiscordClient
@ -11,7 +11,7 @@ export class IconCache {
}
public get(iconName: string): string | null {
if (!this.existingIcons?.has(iconName) ?? false) {
if (!this.existingIcons?.has(iconName)) {
return null;
}