WIP: Discord related client options
This commit is contained in:
parent
76715df025
commit
c9559a4a55
23
@types/Client.d.ts
vendored
23
@types/Client.d.ts
vendored
@ -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';
|
||||
@ -17,3 +23,20 @@ export type ComponentOptions = {
|
||||
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'>
|
Loading…
Reference in New Issue
Block a user