3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-07 11:07:19 +00:00

refactor: remove Timeout imports and constructor syntax sugar

This commit is contained in:
almeidx 2025-06-01 23:38:49 +01:00
parent 62da0a6e34
commit f607ad424b
No known key found for this signature in database
20 changed files with 32 additions and 42 deletions

View file

@ -31,7 +31,6 @@ import { searchCmdSignature } from "./commands/SearchCmd.js";
import { getUserInfoEmbed } from "./functions/getUserInfoEmbed.js";
import { refreshMembersIfNeeded } from "./refreshMembers.js";
import { UtilityPluginType } from "./types.js";
import Timeout = NodeJS.Timeout;
const SEARCH_RESULTS_PER_PAGE = 15;
const SEARCH_ID_RESULTS_PER_PAGE = 50;
@ -93,7 +92,7 @@ export async function displaySearch(
let searching = false;
let currentPage = args.page || 1;
let stopCollectionFn: () => void;
let stopCollectionTimeout: Timeout;
let stopCollectionTimeout: NodeJS.Timeout;
const perPage = args.ids ? SEARCH_ID_RESULTS_PER_PAGE : SEARCH_RESULTS_PER_PAGE;