Skip to content

Commit

Permalink
feat(Command): add options option
Browse files Browse the repository at this point in the history
  • Loading branch information
SebestikCZ authored May 1, 2022
1 parent 2a8eaa2 commit 188cc77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/structures/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export class Command {
public dmPermission?: boolean;
public arguments?: Array<Argument>;
public inhibitors: CommandInhibitors;
public options: CommandOptions;
public guildId?: string;
private static defaults?: Partial<CommandOptions>;
public cooldown?: string;
Expand Down Expand Up @@ -160,6 +161,7 @@ export class Command {
this.run = options.run || Command.defaults?.run;
this.onError = options.onError || Command.defaults?.onError;
this.autoDefer = options.autoDefer || Command.defaults?.autoDefer;
this.options = this;

Commands.register(this);
})
Expand Down

0 comments on commit 188cc77

Please sign in to comment.