mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
fix: formatted tankopedia arrays not using promise
This commit is contained in:
1 parent
423ad4e433
commit
fb66027de0
5 files changed
+13
-8
No files matched your search
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user