fix: Updated sending in checks for validation runner

This commit is contained in:
Marius Begby committed 2023-09-06 20:40:25 +02:00
1 parent 8da6f44ebb
commit 56056cd73d
17 files changed
+76 -110

No files matched your search

+1 -3
View File
@@ -29,15 +29,13 @@ class ShardsCommand extends BaseSlashCommandInteraction {
);
const isSystemCommand: boolean = true;
super(data, isSystemCommand);
this.validators = [(args) => checkValidGuildId(args)];
}
async execute(params: BaseSlashCommandParams): BaseSlashCommandReturnType {
const { executionId, interaction, client } = params;
const logger = this.getLogger(this.name, executionId, interaction);
await this.runValidators({ interaction, executionId });
await this.runValidators({ interaction, executionId }, [checkValidGuildId]);
let shardInfoList: ShardInfo[] = [];