mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 05:06:11 +01:00
feat: split resolvePlayer
This commit is contained in:
1 parent
c221c06511
commit
a67d1700fc
17 files changed
+101
-88
No files matched your search
@@ -0,0 +1,9 @@
|
||||
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}`);
|
||||
}
|
||||
Reference in new issue
Block a user