modmail/@types/Client.d.ts

49 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-03-22 21:15:42 +01:00
import { LoggerMasterOptions } from '@navy.gif/logger';
import { ClientOptions, Message } from 'discord.js';
export type ModmailClientOptions = {
libraryOptions: ClientOptions,
loggerOptions: LoggerMasterOptions,
prefix: string,
discordToken: string,
galacticToken?: string,
mainGuild: string,
bansGuild: string,
modmailCategory: [string, string, string]
context: number,
staffRoles: string[],
graveyardInactive: number,
readInactive: number,
channelSweepInterval: number,
saveInterval: number,
sudo: string[],
anonColor: number,
modmailReminderInterval: number,
modmailReminderChannel: string,
logChannel: string,
inlineResponse: string,
}
export type CommandOptions = {
name: string,
aliases?: string[],
showUsage?: boolean,
usage?: string
}
export type ErrorResponse = {
error: true,
msg: string
}
export type CommandResponse =
| ErrorResponse | Message
| string | void | null
export type CommandParams = {
args: string[],
clean: string
}
export type ExtendedMessage<T extends boolean = boolean> = Message<T>
& {_caller: string}