Skip to content

Commit

Permalink
fix: arguments are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom authored Feb 3, 2022
1 parent c4eda77 commit 08a4c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/structures/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class Command {
this.name = options.name || Command.defaults?.name;
this.description = options.description || Command.defaults?.description;
this.type = options.type || Command.defaults?.type;
this.arguments = options.arguments.map((argument) => {
this.arguments = options.arguments?.map((argument) => {
if (argument instanceof Argument) return argument;
else return new Argument(argument);
});
Expand Down

0 comments on commit 08a4c39

Please sign in to comment.