mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 05:06:11 +01:00
17 lines
382 B
TypeScript
17 lines
382 B
TypeScript
import { ChatInputCommandInteraction } from 'discord.js';
|
|
import buttonPrimary from './buttonPrimary';
|
|
|
|
export function buttonRefresh(
|
|
interaction: ChatInputCommandInteraction,
|
|
path: string,
|
|
) {
|
|
if (
|
|
interaction.appPermissions?.has('AttachFiles') &&
|
|
interaction.appPermissions?.has('ViewChannel')
|
|
) {
|
|
return buttonPrimary(path, 'Refresh');
|
|
}
|
|
|
|
return null;
|
|
}
|