Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
barthofu committed Mar 8, 2023
1 parent 970c448 commit 7f50726
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/commands/General/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default class HelpCommand {
]

for (const category of this._categories) {

let commands = category[1]
.map(cmd => {
return "</" +
Expand All @@ -92,7 +93,7 @@ export default class HelpCommand {
":" +
applicationCommands.find(acmd => acmd.name == (cmd.group ? cmd.group : cmd.name))!.id +
">"
});
})

embed.addFields([{
name: category[0],
Expand Down
8 changes: 4 additions & 4 deletions src/utils/types/utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
type Modify<T, R> = Omit<T, keyof R> & R

type OmitPick<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
type WithOptional<T, K extends keyof T> = OmitPick<T, K> & Partial<Pick<T, K>>;
type OmitPick<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
type WithOptional<T, K extends keyof T> = OmitPick<T, K> & Partial<Pick<T, K>>
type WithRequiredProperty<Type, Key extends keyof Type> = Type & {
[Property in Key]-?: Type[Property];
};
[Property in Key]-?: Type[Property]
}

type Primitive = string | number | symbol

Expand Down

0 comments on commit 7f50726

Please sign in to comment.