mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: evolution refresh button
This commit is contained in:
1 parent
bcd3a00f91
commit
7447ccc487
5 files changed
+41
-50
No files matched your search
@@ -18,7 +18,7 @@ export default function resolvePeriodFromButton(
|
||||
let end: number;
|
||||
const url = new URL(`https://example.com/${interaction.customId}`);
|
||||
const path = url.pathname.split('/');
|
||||
const periodSubcommand = path[2] as PeriodType;
|
||||
const periodSubcommand = path.at(-1) as PeriodType;
|
||||
|
||||
if (periodSubcommand === 'custom') {
|
||||
const startRaw = parseInt(url!.searchParams.get('start')!);
|
||||
|
||||
Reference in new issue
Block a user