mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
17 lines
389 B
TypeScript
17 lines
389 B
TypeScript
import { ChatInputCommandInteraction } from 'discord.js';
|
|
import buttonPrimary from './buttonPrimary';
|
|
|
|
export function buttonRefresh(
|
|
interaction: ChatInputCommandInteraction,
|
|
path: string,
|
|
) {
|
|
if (
|
|
interaction.appPermissions?.has('ReadMessageHistory') &&
|
|
interaction.appPermissions?.has('ViewChannel')
|
|
) {
|
|
return buttonPrimary(path, 'Refresh');
|
|
}
|
|
|
|
return null;
|
|
}
|