@chinchillaenterprises/mcp-discord
Version:
Modular Discord MCP server with 45+ tools for comprehensive server management, featuring clean architecture and discord_ prefixed tools
31 lines • 959 B
TypeScript
import { Client } from "discord.js";
import { AccountStateManager } from "../services/account-state.js";
/**
* Utility functions for Discord client management
*/
/**
* Get an active Discord client, creating one if necessary
*/
export declare function getActiveClient(accountState: AccountStateManager): Promise<Client>;
/**
* Ensure a client is ready for use
*/
export declare function ensureClientReady(client: Client): Promise<void>;
/**
* Get client status information
*/
export declare function getClientStatusInfo(client: Client): {
isReady: boolean;
status: string;
user?: string;
guilds: number;
};
/**
* Safely cleanup a client connection
*/
export declare function cleanupClient(client: Client): Promise<void>;
/**
* Get the active guild for the client
*/
export declare function getGuild(client: Client, accountState: AccountStateManager): Promise<import("discord.js").Guild>;
//# sourceMappingURL=client-helpers.d.ts.map