feat: updated /tankstats

This commit is contained in:
TresAbhi committed 2023-05-30 17:24:24 +00:00
1 parent 50369e9225
commit 831300cf69
13 files changed
+300 -272

No files matched your search

+3 -1
View File
@@ -18,7 +18,9 @@ export default async function tanksAutocomplete(
? go(focusedOption.value, tanks, { keys: ['name'], limit: 10 }).map(
(item) =>
({
name: item.obj.name ? item.obj.name : resolveTankName(item.obj),
name: item.obj.name
? item.obj.name
: resolveTankName(item.obj.tank_id),
value: `${item.obj.tank_id}`,
} satisfies ApplicationCommandOptionChoiceData<string>),
)