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:
parent
62da0a6e34
commit
f607ad424b
20 changed files with 32 additions and 42 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue