mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +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
@@ -16,7 +16,7 @@ export default async function autocompleteTanks(
|
||||
await interaction.respond(
|
||||
focusedOption.value
|
||||
? await Promise.all(
|
||||
go(focusedOption.value, TANKS, { keys: ['name'], limit: 10 }).map(
|
||||
go(focusedOption.value, await TANKS, { keys: ['name'], limit: 10 }).map(
|
||||
async (item) =>
|
||||
({
|
||||
name: item.obj.name
|
||||
|
||||
Reference in new issue
Block a user