fix: formatted tankopedia arrays not using promise

This commit is contained in:
TresAbhi committed 2023-07-05 17:42:14 +00:00
1 parent 423ad4e433
commit fb66027de0
5 files changed
+13 -8

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ export const searchTanksCommand: CommandRegistry = {
async handler(interaction) {
const tank = interaction.options.getString('tank')!;
const limit = interaction.options.getInteger('limit') ?? 25;
const results = go(tank, TANK_NAMES, { limit }).map(
const results = go(tank, await TANK_NAMES, { limit }).map(
(result) => result.target,
);