From c9559a4a559c3a5fd35b374163ad835ff99d3908 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 31 Mar 2024 14:42:54 +0300 Subject: [PATCH] WIP: Discord related client options --- @types/Client.d.ts | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/@types/Client.d.ts b/@types/Client.d.ts index 2a1f02f..8cec7cf 100644 --- a/@types/Client.d.ts +++ b/@types/Client.d.ts @@ -1,4 +1,5 @@ import { LoggerClientOptions } from '@navy.gif/logger'; +import { GatewayIntentBits, Partials } from 'discord.js'; export type ClientOptions = { // Set by the startup script @@ -8,6 +9,11 @@ export type ClientOptions = { // User configured logger: LoggerClientOptions, developmentMode: boolean, + libraryOptions: { + partials?: Partials, + intents: GatewayIntentBits[], + invalidRequestWarningInterval?: number + } } export type ComponentType = 'EDIT ME'; @@ -16,4 +22,21 @@ export type ComponentOptions = { type: ComponentType, name: string, disabled?: boolean -}; \ No newline at end of file +}; + +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 \ No newline at end of file