mirror of
https://github.com/sern-handler/handler
synced 2026-06-27 18:22:14 +00:00
style: pretty
This commit is contained in:
@@ -24,21 +24,18 @@ export interface SernEventsMapping {
|
||||
warning: [Payload];
|
||||
}
|
||||
|
||||
|
||||
export type Awaitable<T> = PromiseLike<T> | T;
|
||||
|
||||
|
||||
export type Deprecated<Message extends string> = [never, Message];
|
||||
|
||||
|
||||
export interface Wrapper {
|
||||
commands: string;
|
||||
defaultPrefix?: string;
|
||||
events?: string;
|
||||
/**
|
||||
* Overload to enable mode in case developer does not use a .env file.
|
||||
*/
|
||||
mode?: 'DEV' | 'PROD'
|
||||
* Overload to enable mode in case developer does not use a .env file.
|
||||
*/
|
||||
mode?: 'DEV' | 'PROD';
|
||||
/*
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -47,7 +44,6 @@ export interface Wrapper {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
// Thanks to @kelsny
|
||||
export type ParseType<T> = {
|
||||
[K in keyof T]: T[K] extends unknown ? [k: K, args: T[K]] : never;
|
||||
@@ -56,4 +52,3 @@ export type ParseType<T> = {
|
||||
export type Args = ParseType<{ text: string[]; slash: SlashOptions }>;
|
||||
|
||||
export type SlashOptions = Omit<CommandInteractionOptionResolver, 'getMessage' | 'getFocused'>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user