mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 09:48:56 +01:00
feat(status): enhance server status command with structured response and improved host categorization
This commit is contained in:
9
src/type.d.ts
vendored
9
src/type.d.ts
vendored
@@ -1,4 +1,11 @@
|
||||
import { ButtonInteraction, ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
|
||||
|
||||
export type Host = { host: string, name: string, alive: boolean, type: 'ping' | 'website' };
|
||||
export type InfraType = 'website' | 'ryzen' | 'xeon' | 'games';
|
||||
export type Host = {
|
||||
host: string,
|
||||
name: string,
|
||||
alive: boolean,
|
||||
ping_type: 'ping' | 'website',
|
||||
type: InfraType
|
||||
};
|
||||
export type CommandDefinition = { data: SlashCommandBuilder, execute: (interaction: ChatInputCommandInteraction) => void, buttons?: { id: string, handle: (interaction: ButtonInteraction) => void}[]};
|
||||
Reference in New Issue
Block a user