From d2e4ca63a7ffbf68a96f36936f95bf40cd3c1112 Mon Sep 17 00:00:00 2001 From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com> Date: Sat, 12 Feb 2022 08:52:29 +0300 Subject: [PATCH] Update handler.ts --- src/types/handler.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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;