diff --git a/src/types/handler.ts b/src/types/handler.ts index dc76fae..644154f 100644 --- a/src/types/handler.ts +++ b/src/types/handler.ts @@ -3,12 +3,13 @@ import type { CommandInteraction, CommandInteractionOptionResolver, Message, Mes import type * as Sern from "../handler/sern" export type Visibility = "private" | "public" -//Anything that can be sent in a `#send` or `#reply` + +// Anything that can be sent in a `#send` or `#reply` export type possibleOutput = T | MessagePayload & MessageOptions; export type Nullable = T | null; export type delegate = Sern.Module["delegate"] -/// Thanks @cursorsdottsx +// Thanks @cursorsdottsx export type ParseType = { [K in keyof T]: T[K] extends unknown ? [k: K, args: T[K]] : never; }[keyof T]; @@ -19,5 +20,6 @@ export type Context = { interaction: Option } export type Arg = ParseType<{text : string, slash : SlashOptions}> + // TypeAlias for interaction.options -export type SlashOptions = Omit; \ No newline at end of file +export type SlashOptions = Omit;