mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
feat: return-based interaction reply edits
This commit is contained in:
1 parent
fbcd9e82e3
commit
4d9dc067af
19 files changed
+249
-306
No files matched your search
@@ -13,7 +13,6 @@ import { TIER_ROMAN_NUMERALS, tankopedia } from '../core/blitz/tankopedia.js';
|
||||
import cmdName from '../core/interaction/cmdName.js';
|
||||
import addUsernameOption from '../core/options/addUsernameOption.js';
|
||||
import { WARGAMING_APPLICATION_ID } from '../core/process/args.js';
|
||||
import render from '../core/ui/render.js';
|
||||
import { CommandRegistry } from '../events/interactionCreate.js';
|
||||
import { AccountInfo } from '../types/accountInfo.js';
|
||||
import { PlayerClanData } from '../types/playerClanData.js';
|
||||
@@ -72,7 +71,7 @@ export default {
|
||||
`https://api.wotblitz.${server}/wotb/clans/accountinfo/?application_id=${WARGAMING_APPLICATION_ID}&account_id=${id}&extra=clan`,
|
||||
);
|
||||
|
||||
const image = await render(
|
||||
return (
|
||||
<Wrapper>
|
||||
{/* TODO: integrate some of these into title bar */}
|
||||
<TitleBar
|
||||
@@ -104,10 +103,8 @@ export default {
|
||||
)}
|
||||
|
||||
<PoweredByWargaming />
|
||||
</Wrapper>,
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
await interaction.editReply({ files: [image] });
|
||||
},
|
||||
|
||||
autocomplete: usernameAutocomplete,
|
||||
|
||||
Reference in new issue
Block a user