41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { LoggerClientOptions } from '@navy.gif/logger';
|
|
import { GatewayIntentBits, Partials } from 'discord.js';
|
|
import { ComponentType } from '../src/client/interfaces/Component.ts';
|
|
|
|
export type ClientOptions = {
|
|
// Set by the startup script
|
|
rootDir: string,
|
|
version: string,
|
|
|
|
// User configured
|
|
logger: LoggerClientOptions,
|
|
developmentMode: boolean,
|
|
libraryOptions: {
|
|
partials?: Partials,
|
|
intents: GatewayIntentBits[],
|
|
invalidRequestWarningInterval?: number
|
|
}
|
|
}
|
|
|
|
export type ComponentOptions = {
|
|
type: ComponentType,
|
|
name: string,
|
|
disabled?: boolean
|
|
};
|
|
|
|
export type ExtendedCommandOptionDefinition = {
|
|
restricted?: boolean
|
|
} & CommandOptionDefinition
|
|
|
|
export type CommandDefinition = {
|
|
aliases?: string[],
|
|
options?: (ExtendedCommandOptionDefinition | ExtendedCommandOption)[],
|
|
restricted?: boolean,
|
|
dmOnly?: boolean,
|
|
guildOnly?: boolean,
|
|
help?: string,
|
|
limited?: Snowflake[],
|
|
showUsage?: boolean,
|
|
sameVc?: boolean,
|
|
description?: string,
|
|
} & Omit<ComponentOptions, 'type'> |