diff --git a/ts/modules/discord.ts b/ts/modules/discord.ts index f773ccf..6dd785f 100644 --- a/ts/modules/discord.ts +++ b/ts/modules/discord.ts @@ -14,7 +14,7 @@ export function newDiscordSearch(title: string, description: string, buttonText: if (!window.discordEnabled) { return () => {}; } - let timer: NodeJS.Timer; + let timer: ReturnType; listeners[buttonText] = (event: CustomEvent) => { clearTimeout(timer); const list = document.getElementById("discord-list") as HTMLTableElement;