bot-framework/@types/Client.d.ts

42 lines
1.0 KiB
TypeScript

import { LoggerClientOptions } from '@navy.gif/logger';
import { GatewayIntentBits, Partials } from 'discord.js';
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 ComponentType = 'EDIT ME';
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'>