mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-06 04:29:43 +02:00
- Add `defineCommand` function to validate and normalize command inputs. - Introduce `deployApplicationCommands` for deploying slash commands to Discord. - Create `CommandRegistry` class for managing command registration and retrieval. - Implement `buildSlashPayload` to construct slash command payloads with localization support. - Add usage utilities for prefix and slash commands. - Develop `CommandExecutor` to handle command execution with permission checks and cooldown management. - Create member message rendering service for welcome and leave messages with customizable templates. - Introduce presence template variables for dynamic bot status updates. - Implement template variable utilities for rendering and extracting variables from strings.
15 lines
361 B
TypeScript
15 lines
361 B
TypeScript
import type { CommandRegistry } from "../core/commands/registry.js";
|
|
import type { I18nService } from "../i18n/index.js";
|
|
|
|
export interface DeployCommandsOptions {
|
|
token: string;
|
|
clientId: string;
|
|
guildId?: string;
|
|
registry: CommandRegistry;
|
|
i18n: I18nService;
|
|
}
|
|
|
|
export interface DeployCommandsResult {
|
|
scope: "guild" | "global";
|
|
count: number;
|
|
} |