From 7f507263efdc367d3ff3c51a45c814a97471f5a2 Mon Sep 17 00:00:00 2001 From: barthofu Date: Wed, 8 Mar 2023 08:15:18 +0000 Subject: [PATCH] fix: typo --- src/commands/General/help.ts | 3 ++- src/utils/types/utils.d.ts | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/commands/General/help.ts b/src/commands/General/help.ts index e1fd0061..cd637a58 100644 --- a/src/commands/General/help.ts +++ b/src/commands/General/help.ts @@ -83,6 +83,7 @@ export default class HelpCommand { ] for (const category of this._categories) { + let commands = category[1] .map(cmd => { return " acmd.name == (cmd.group ? cmd.group : cmd.name))!.id + ">" - }); + }) embed.addFields([{ name: category[0], diff --git a/src/utils/types/utils.d.ts b/src/utils/types/utils.d.ts index 951ca65a..02b70e36 100644 --- a/src/utils/types/utils.d.ts +++ b/src/utils/types/utils.d.ts @@ -1,10 +1,10 @@ type Modify = Omit & R -type OmitPick = Pick>; -type WithOptional = OmitPick & Partial>; +type OmitPick = Pick> +type WithOptional = OmitPick & Partial> type WithRequiredProperty = Type & { - [Property in Key]-?: Type[Property]; -}; + [Property in Key]-?: Type[Property] +} type Primitive = string | number | symbol