mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 09:48:56 +01:00
12 lines
553 B
TypeScript
12 lines
553 B
TypeScript
import { ButtonInteraction, ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
|
|
|
|
export type InfraType = 'website' | 'ryzen' | 'xeon' | 'games';
|
|
export type Host = {
|
|
host: string,
|
|
name: string,
|
|
alive: boolean,
|
|
ping_type: 'ping' | 'website',
|
|
type: InfraType,
|
|
notify: boolean;
|
|
};
|
|
export type CommandDefinition = { data: SlashCommandBuilder | SlashCommandOptionsOnlyBuilder, execute: (interaction: ChatInputCommandInteraction) => void, buttons?: { id: string, handle: (interaction: ButtonInteraction) => void}[]}; |