mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 05:06:11 +01:00
9 lines
365 B
TypeScript
9 lines
365 B
TypeScript
import { ButtonInteraction, CacheType } from 'discord.js';
|
|||
|
|
import { CYCLIC_API } from '../../constants/cyclic.js';
|
||
|
|
import resolvePlayerFromURL from '../express/resolvePlayerFromURL.js';
|
||
|
|
|
||
|
|
export default async function resolvePlayerFromButton(
|
||
|
|
interaction: ButtonInteraction<CacheType>,
|
||
|
|
) {
|
||
|
|
return resolvePlayerFromURL(`${CYCLIC_API}/${interaction.customId}`);
|
||
|
|
}
|