Adds Event system and automatic messages
This commit is contained in:
parent
0e10ea3cab
commit
2f826fbf36
20 changed files with 428 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue