diff --git a/src/commands/searchPlayers.ts b/src/commands/searchPlayers.ts index 0f43f871c..87d66c640 100644 --- a/src/commands/searchPlayers.ts +++ b/src/commands/searchPlayers.ts @@ -3,12 +3,11 @@ import markdownEscape from 'markdown-escape'; import { REGION_NAMES, Region } from '../constants/regions'; import { WARGAMING_APPLICATION_ID } from '../constants/wargamingApplicationID'; import getWargamingResponse from '../core/blitz/getWargamingResponse'; -import { usernamePattern } from '../core/blitz/listPlayers'; +import { AccountList, usernamePattern } from '../core/blitz/listPlayers'; import addRegionChoices from '../core/discord/addRegionChoices'; import addUsernameChoices from '../core/discord/addUsernameChoices'; import embedInfo from '../core/discord/embedInfo'; import { CommandRegistry } from '../events/interactionCreate'; -import { AccountList } from '../types/accountList'; export const searchPlayersCommand: CommandRegistry = { inProduction: true, diff --git a/src/core/blitz/listPlayers.ts b/src/core/blitz/listPlayers.ts index fa419bbcb..15f3bae99 100644 --- a/src/core/blitz/listPlayers.ts +++ b/src/core/blitz/listPlayers.ts @@ -6,7 +6,7 @@ interface Account { nickname: string; account_id: number; } -type AccountList = Account[]; +export type AccountList = Account[]; export type AccountListWithServer = (Account & { region: Region; })[];